See Also: ColorMatrix
public class ColorMatrix : Object
4x5 matrix for transforming the color and alpha components of a Bitmap. The matrix can be passed as single array, and is treated as follows:
When applied to a color [R, G, B, A], the resulting color is computed as:
That resulting color [R’, G’, B’, A’] then has each channel clamped to the 0 to 255 range.
The sample ColorMatrix below inverts incoming colors by scaling each channel by -1, and then shifting the result up by 255 to remain in the standard color space.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Android.Graphics.ColorMatrix are listed below.
See Also: Object
Return the array of floats representing this colormatrix.
Concat this colormatrix with the specified postmatrix.
Concat this colormatrix with the specified prematrix.
Set this colormatrix to identity:
Assign the src colormatrix into this matrix, copying all of its values.
Assign the array of floats into this matrix, copying all of its values.
Set this colormatrix to the concatenation of the two specified colormatrices, such that the resulting colormatrix has the same effect as applying matB and then applying matA.
Set the matrix to convert RGB to YUV
Set the rotation on a color axis by the specified values.
Set the matrix to affect the saturation of colors.
|SetScale(Single, Single, Single, Single)|
Set this colormatrix to scale by the specified values.
Set the matrix to convert from YUV to RGB