Java android.graphics ColorMatrix fields, constructors, methods, implement or subclass

Example usage for Java android.graphics ColorMatrix fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics ColorMatrix.

The text is from its open source code.

Constructor

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.

Method

voidpostConcat(ColorMatrix postmatrix)
Concat this colormatrix with the specified postmatrix.
voidreset()
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 
voidset(ColorMatrix src)
Assign the src colormatrix into this matrix, copying all of its values.
voidset(float[] src)
Assign the array of floats into this matrix, copying all of its values.
voidsetConcat(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.
voidsetRotate(int axis, float degrees)
Set the rotation on a color axis by the specified values.
voidsetSaturation(float sat)
Set the matrix to affect the saturation of colors.
voidsetScale(float rScale, float gScale, float bScale, float aScale)
Set this colormatrix to scale by the specified values.