BlendModeColorFilter
Creates a color filter that applies the blend mode given as the second argument. The source color
BlendModeColorFilter
Class
Common
class BlendModeColorFilter
internal constructor(
val color: Color,
val blendMode: BlendMode,
nativeColorFilter: NativeColorFilter,
) : ColorFilter(nativeColorFilter)
Creates a color filter that applies the blend mode given as the second argument. The source color is the one given as the first argument, and the destination color is the one from the layer being composited.
The output of this filter is then composited into the background according to the
Paint.blendMode, using the output of this filter as the source and the background as the
destination.
Parameters
| color | Color used to blend source content |
| blendMode | BlendMode used when compositing the tint color to the destination |
Secondary Constructors
constructor(
color: Color,
blendMode: BlendMode,
) : this(color, blendMode, actualTintColorFilter(color, blendMode))
