ColorMatrixColorFilter
-
Cmn
class ColorMatrixColorFilter : ColorFilter
| kotlin.Any | ||
| ↳ | androidx.compose.ui.graphics.ColorFilter | |
| ↳ | androidx.compose.ui.graphics.ColorMatrixColorFilter |
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.
Summary
Public constructors |
|
|---|---|
ColorMatrixColorFilter(colorMatrix: ColorMatrix) |
Cmn
|
Public functions |
||
|---|---|---|
ColorMatrix |
copyColorMatrix(targetColorMatrix: ColorMatrix)Copy the internal |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
open String |
toString() |
Cmn
|
Public constructors
Public 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
| Parameters | |
|---|---|
targetColorMatrix: ColorMatrix = ColorMatrix() |
Optional |
| Returns | |
|---|---|
ColorMatrix |
the copied |