 |
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
@ kDstIn
destination trimmed by source
@ kDC
inverse src color (i.e.
@ kLastMode
last valid value
@ kSA
inverse dst color (i.e.
@ kLighten
lighter of source and destination
@ kDstOver
destination over source
@ kColorBurn
darken destination to reflect source
@ kDst
preserves destination
SkBlendMode
Definition: SkBlendMode.h:13
@ kLastCoeffMode
last porter duff blend mode
SkBlendModeCoeff
For Porter-Duff SkBlendModes (those <= kLastCoeffMode), these coefficients describe the blend equatio...
Definition: SkBlendMode.h:54
@ kLuminosity
luminosity of source with hue and saturation of destination
@ kDarken
darker of source and destination
@ kDstATop
destination inside source blended with source
@ kHardLight
multiply or screen, depending on source
@ kSrcOut
source trimmed outside destination
SK_API const char * SkBlendMode_Name(SkBlendMode blendMode)
Returns name of blendMode as null-terminated C string.
@ kExclusion
subtract darker from lighter with lower contrast
@ kModulate
product of premultiplied colors; darkens destination
@ 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.
@ kClear
replaces destination with zero: fully transparent
@ kXor
each of source and destination trimmed outside the other
@ kMultiply
multiply source with destination, darkening image
@ kSrcATop
source inside destination blended with destination
@ kSrc
replaces destination
@ kHue
hue of source with saturation and luminosity of destination
@ kSrcOver
source over destination
@ kScreen
multiply inverse of pixels, inverting result; brightens destination
@ kDA
inverse src alpha (i.e.
@ kDifference
subtract darker from lighter with higher contrast
@ kColorDodge
brighten destination to reflect source
@ kLastSeparableMode
last blend mode operating separately on components
@ kOverlay
multiply or screen, depending on destination
@ kDstOut
destination trimmed outside source
SK_API bool SkBlendMode_AsCoeff(SkBlendMode mode, SkBlendModeCoeff *src, SkBlendModeCoeff *dst)
Returns true if 'mode' is a coefficient-based blend mode (<= kLastCoeffMode).
@ kSrcIn
source trimmed inside destination