A description of a color filter to apply when drawing a shape or compositing a layer with a particular Paint. A color filter is a function that takes two colors, and outputs one color. When applied during compositing, it is independently applied to each pixel of the layer being drawn before the entire layer is merged with the destination.
Construct a color filter that applies the sRGB gamma curve to the RGB
Construct a color filter that transforms a color by a 4x5 matrix. The
matrix is in row-major order and the translation column is specified in
unnormalized, 0...255, space.
- ColorFilter.mode(Color color, BlendMode blendMode)
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. [...]
Creates a color filter that applies the inverse of the sRGB gamma curve
to the RGB channels.