Code: Select all
ColorMatrix matrix = new ColorMatrix();
ColorMatrix temp = new ColorMatrix();
temp.setRotate(0, 63);
matrix.postConcat(temp);
temp.setRotate(1, 154);
matrix.postConcat(temp);
temp.setRotate(2, 324);
matrix.postConcat(temp);
temp.setScale(-1.00, 1.19, -0.35, 1.61);
matrix.postConcat(temp);
temp.setSaturation(0.17);
matrix.postConcat(temp);
return matrix;