Added in API level 29
BlendMode
class BlendMode
|
Summary
Enum values | |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Enum values
CLEAR
Added in API level 29
enum val CLEAR : BlendMode
Destination pixels covered by the source are cleared to 0.
COLOR
Added in API level 29
enum val COLOR : BlendMode
Replaces hue and saturation of destination with hue and saturation of source, leaving luminosity unchanged.
COLOR_BURN
Added in API level 29
enum val COLOR_BURN : BlendMode
Makes destination darker to reflect source.
COLOR_DODGE
Added in API level 29
enum val COLOR_DODGE : BlendMode
Makes destination brighter to reflect source.
DARKEN
Added in API level 29
enum val DARKEN : BlendMode
Retains the smallest component of the source and destination pixels.
DIFFERENCE
Added in API level 29
enum val DIFFERENCE : BlendMode
Subtracts darker from lighter with higher contrast.
DST
Added in API level 29
enum val DST : BlendMode
The source pixels are discarded, leaving the destination intact.
DST_ATOP
Added in API level 29
enum val DST_ATOP : BlendMode
Discards the destination pixels that are not covered by source pixels. Draws remaining destination pixels over source pixels.
DST_IN
Added in API level 29
enum val DST_IN : BlendMode
Keeps the destination pixels that cover source pixels, discards the remaining source and destination pixels.
DST_OUT
Added in API level 29
enum val DST_OUT : BlendMode
Keeps the destination pixels that are not covered by source pixels. Discards destination pixels that are covered by source pixels. Discards all source pixels.
DST_OVER
Added in API level 29
enum val DST_OVER : BlendMode
The source pixels are drawn behind the destination pixels.
EXCLUSION
Added in API level 29
enum val EXCLUSION : BlendMode
Subtracts darker from lighter with lower contrast.
HARD_LIGHT
Added in API level 29
enum val HARD_LIGHT : BlendMode
Makes destination lighter or darker, depending on source.
HUE
Added in API level 29
enum val HUE : BlendMode
Replaces hue of destination with hue of source, leaving saturation and luminosity unchanged.
LIGHTEN
Added in API level 29
enum val LIGHTEN : BlendMode
Retains the largest component of the source and destination pixel.
LUMINOSITY
Added in API level 29
enum val LUMINOSITY : BlendMode
Replaces luminosity of destination with luminosity of source, leaving hue and saturation unchanged.
MODULATE
Added in API level 29
enum val MODULATE : BlendMode
Multiplies the source and destination pixels.
MULTIPLY
Added in API level 29
enum val MULTIPLY : BlendMode
Multiplies the source and destination pixels.
OVERLAY
Added in API level 29
enum val OVERLAY : BlendMode
Multiplies or screens the source and destination depending on the destination color.
PLUS
Added in API level 29
enum val PLUS : BlendMode
Adds the source pixels to the destination pixels and saturates the result.
SATURATION
Added in API level 29
enum val SATURATION : BlendMode
Replaces saturation of destination saturation hue of source, leaving hue and luminosity unchanged.
SCREEN
Added in API level 29
enum val SCREEN : BlendMode
Adds the source and destination pixels, then subtracts the source pixels multiplied by the destination.
SOFT_LIGHT
Added in API level 29
enum val SOFT_LIGHT : BlendMode
Makes destination lighter or darker, depending on source.
Where
SRC
Added in API level 29
enum val SRC : BlendMode
The source pixels replace the destination pixels.
SRC_ATOP
Added in API level 29
enum val SRC_ATOP : BlendMode
Discards the source pixels that do not cover destination pixels. Draws remaining source pixels over destination pixels.
SRC_IN
Added in API level 29
enum val SRC_IN : BlendMode
Keeps the source pixels that cover the destination pixels, discards the remaining source and destination pixels.
SRC_OUT
Added in API level 29
enum val SRC_OUT : BlendMode
Keeps the source pixels that do not cover destination pixels. Discards source pixels that cover destination pixels. Discards all destination pixels.
SRC_OVER
Added in API level 29
enum val SRC_OVER : BlendMode
The source pixels are drawn over the destination pixels.
XOR
Added in API level 29
enum val XOR : BlendMode
Discards the source and destination pixels where source pixels cover destination pixels. Draws remaining source pixels.