You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When doing svg filters and processing I need additional color filters that are currently missing from SKColorFilter (especially for color space conversion LinearToSRGBGamma() and SRGBToLinearGamma())
Describe the solution you'd like
API proposal (new members in SKColorFilter class):
// A version of Matrix which operates in HSLA space instead of RGBA.// I.e. HSLA-to-RGBA(Matrix(RGBA-to-HSLA(input))).static sk_sp<SkColorFilter> HSLAMatrix(const SkColorMatrix&);
static sk_sp<SkColorFilter> HSLAMatrix(constfloat rowMajor[20]);
static sk_sp<SkColorFilter> LinearToSRGBGamma();
static sk_sp<SkColorFilter> SRGBToLinearGamma();
static sk_sp<SkColorFilter> Lerp(float t, sk_sp<SkColorFilter> dst, sk_sp<SkColorFilter> src);
// Runs the child filter in a different working color format than usual (premul in// destination surface's color space), with all inputs and outputs expressed in this format.// Each non-null {tf,gamut,at} parameter overrides that particular aspect of the color format.static sk_sp<SkColorFilter> WithWorkingFormat(sk_sp<SkColorFilter> child,
const skcms_TransferFunction* tf,
const skcms_Matrix3x3* gamut,
const SkAlphaType* at);
Is your feature request related to a problem? Please describe.
When doing svg filters and processing I need additional color filters that are currently missing from SKColorFilter (especially for color space conversion LinearToSRGBGamma() and SRGBToLinearGamma())
Describe the solution you'd like
API proposal (new members in SKColorFilter class):
nor sure how
WithWorkingFormat
would look likeAdd below API from skia to SKColorFilter
https://github.com/google/skia/blob/1f193df9b393d50da39570dab77a0bb5d28ec8ef/include/core/SkColorFilter.h#L78-L93
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: