androidx.compose.ui.graphics

ColorMatrixColorFilter

Class · from org.jetbrains.compose.ui:ui-graphics:1.12.2

No hand-written docs yet.

Create a ColorFilter that transforms colors through a 4x5 color matrix. This filter can be used to change the saturation of pixels, convert from YUV to RGB, etc.

class ColorMatrixColorFilter : ColorFilter

Is a

Functions

copyColorMatrix

fun copyColorMatrix(
    targetColorMatrix: ColorMatrix = ColorMatrix(),
): ColorMatrix

Copy the internal ColorMatrix into the provided ColorMatrix instance. By default this creates a new ColorMatrix instance, however, consumers are encouraged to create and re-use instances of ColorMatrix. This method returns the copied result for convenience

Library docs

Create a ColorFilter that transforms colors through a 4x5 color matrix. This filter can be used to change the saturation of pixels, convert from YUV to RGB, etc.