ColorMatrixFilter
A Filter applying a complex color transformation to the view.
colorMatrix is a 4x4 Matrix used to multiply each color as floating points by this matrix. blendRatio is the ratio that will be used to interpolate the original color with the transformed color.
ColorMatrixFilter provides a few pre-baked matrices:
ColorMatrixFilter.GRAYSCALE_MATRIX - Used to make the colors grey
ColorMatrixFilter.IDENTITY_MATRIX - Doesn't modify the colors at all
Properties
Ratio for blending the original color with the transformed color.
The 4x4 MMatrix3D that will be used for transforming each pixel components r, g, b, a
Functions
The number of pixels the passed texture should be bigger at each direction: left, right, top, left.
The method in charge of rendering the texture transformed using ctx and matrix. The method receives a texture that should be the original image with computeBorder additional pixels on each side.