 |
Skia
2D Graphics Library
|
Go to the documentation of this file.
8 #ifndef SkBlendMode_DEFINED
9 #define SkBlendMode_DEFINED
@ kSaturation
saturation of source with hue and luminosity of destination
@ kDC
inverse src color (i.e.
@ kLastMode
last valid value
@ kSA
inverse dst color (i.e.
@ kLighten
rc = s + d - min(s*da, d*sa), ra = kSrcOver
@ kDstOver
r = d + (1-da)*s
@ kColorBurn
darken destination to reflect source
SkBlendMode
Blends are operators that take in two colors (source, destination) and return a new color.
Definition: SkBlendMode.h:38
@ kLastCoeffMode
last porter duff blend mode
SkBlendModeCoeff
For Porter-Duff SkBlendModes (those <= kLastCoeffMode), these coefficients describe the blend equatio...
Definition: SkBlendMode.h:82
@ kLuminosity
luminosity of source with hue and saturation of destination
@ kDarken
rc = s + d - max(s*da, d*sa), ra = kSrcOver
@ kDstATop
r = d*sa + s*(1-da)
@ kHardLight
multiply or screen, depending on source
SK_API const char * SkBlendMode_Name(SkBlendMode blendMode)
Returns name of blendMode as null-terminated C string.
@ kExclusion
rc = s + d - two(s*d), ra = kSrcOver
@ kColor
hue and saturation of source with luminosity of destination
#define SK_API
Definition: SkTypes.h:181
@ kSoftLight
lighten or darken, depending on source
@ kCoeffCount
inverse dst alpha (i.e.
@ kXor
r = s*(1-da) + d*(1-sa)
@ kMultiply
r = s*(1-da) + d*(1-sa) + s*d
@ kSrcATop
r = s*da + d*(1-sa)
@ kHue
hue of source with saturation and luminosity of destination
@ kSrcOver
r = s + (1-sa)*d
@ kDA
inverse src alpha (i.e.
@ kDifference
rc = s + d - 2*(min(s*da, d*sa)), ra = kSrcOver
@ kColorDodge
brighten destination to reflect source
@ kLastSeparableMode
last blend mode operating separately on components
@ kOverlay
multiply or screen, depending on destination
SK_API bool SkBlendMode_AsCoeff(SkBlendMode mode, SkBlendModeCoeff *src, SkBlendModeCoeff *dst)
Returns true if 'mode' is a coefficient-based blend mode (<= kLastCoeffMode).