I am changing Brightness, Contrast, Saturation and Hue of an ImageView. I have searched lot on it.
I got some code which works with ColorMatrix.
[1.] For Brightness ColorMatrix is some thing like
float brightness = (-50F * 1.5F);
ColorMatrix cmB = new ColorMatrix();
cmB.set(new float[] { 1, 0, 0, 0, brightness,
0, 1, 0, 0,brightness,
0, 0, 1, 0, brightness,
0, 0, 0, 1, 0 });
myImageView.setColorFilter(new ColorMatrixColorFilter(cmB));
which works Properly.
[2.] For Contrast ColorMatrix is something Different, which also works properly.
BUT, all these ColorMatrix works individually. Means the effect of last applied ColorMatrix is only scene on ImageView, because it does exactly it, which removes effect of earlier applied ColorMatrix and setups last applies ColorMatrix.
Now I want to MERGE or mix-up ColorMatrix of All Simultaneously. Means want to apply ColorMatrix of Contrast on the effect of ColorMatrix of Brightnrs / Saturation / Hue.