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

Cmn

Public functions

ColorMatrix
copyColorMatrix(targetColorMatrix: ColorMatrix)

Copy the internal ColorMatrix into the provided ColorMatrix instance.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public constructors

ColorMatrixColorFilter

ColorMatrixColorFilter(colorMatrix: ColorMatrix)

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 ColorMatrix to copy contents into

Returns
ColorMatrix

the copied ColorMatrix instance

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String