/**@class android.graphics.ColorMatrix @extends java.lang.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: <pre> [ a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t ]</pre> <p> When applied to a color <code>[R, G, B, A]</code>, the resulting color is computed as: </p> <pre> R’ = a*R + b*G + c*B + d*A + e; G’ = f*R + g*G + h*B + i*A + j; B’ = k*R + l*G + m*B + n*A + o; A’ = p*R + q*G + r*B + s*A + t;</pre> <p> That resulting color <code>[R’, G’, B’, A’]</code> then has each channel clamped to the <code>0</code> to <code>255</code> range. </p> <p> The sample ColorMatrix below inverts incoming colors by scaling each channel by <code>-1</code>, and then shifting the result up by <code>255</code> to remain in the standard color space. </p> <pre> [ -1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0 ]</pre> */ var ColorMatrix = { /**Return the array of floats representing this colormatrix. */ getArray : function( ) {}, /**Set this colormatrix to identity: <pre> [ 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 </pre> */ reset : function( ) {}, /**Assign the src colormatrix into this matrix, copying all of its values. */ set : function( ) {}, /**Assign the array of floats into this matrix, copying all of its values. */ set : function( ) {}, /**Set this colormatrix to scale by the specified values. */ setScale : function( ) {}, /**Set the rotation on a color axis by the specified values. <p> <code>axis=0</code> correspond to a rotation around the RED color <code>axis=1</code> correspond to a rotation around the GREEN color <code>axis=2</code> correspond to a rotation around the BLUE color </p> */ setRotate : function( ) {}, /**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. <p> It is legal for either matA or matB to be the same colormatrix as this. </p> */ setConcat : function( ) {}, /**Concat this colormatrix with the specified prematrix. <p> This is logically the same as calling setConcat(this, prematrix); </p> */ preConcat : function( ) {}, /**Concat this colormatrix with the specified postmatrix. <p> This is logically the same as calling setConcat(postmatrix, this); </p> */ postConcat : function( ) {}, /**Set the matrix to affect the saturation of colors. @param {Number} sat A value of 0 maps the color to gray-scale. 1 is identity. */ setSaturation : function( ) {}, /**Set the matrix to convert RGB to YUV */ setRGB2YUV : function( ) {}, /**Set the matrix to convert from YUV to RGB */ setYUV2RGB : function( ) {}, /** */ equals : function( ) {}, };