Example usage for Java android.graphics ColorMatrix fields, constructors, methods, implement or subclass
The text is from its open source code.
ColorMatrix() Create a new colormatrix initialized to identity (as if reset() had been called). | |
ColorMatrix(float[] src) Create a new colormatrix initialized with the specified array of values. | |
ColorMatrix(ColorMatrix src) Create a new colormatrix initialized with the specified colormatrix. |
void | postConcat(ColorMatrix postmatrix) Concat this colormatrix with the specified postmatrix. |
void | reset() Set this colormatrix to identity: [ 1 0 0 0 0 - red vector 0 1 0 0 0 - green vector 0 0 1 0 0 - blue vector 0 0 0 1 0 ] - alpha vector |
void | set(ColorMatrix src) Assign the src colormatrix into this matrix, copying all of its values. |
void | set(float[] src) Assign the array of floats into this matrix, copying all of its values. |
void | setConcat(ColorMatrix matA, ColorMatrix matB) 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. |
void | setRotate(int axis, float degrees) Set the rotation on a color axis by the specified values. |
void | setSaturation(float sat) Set the matrix to affect the saturation of colors. |
void | setScale(float rScale, float gScale, float bScale, float aScale) Set this colormatrix to scale by the specified values. |