Merge Two ColorMatrix or Apply two or more ColorMatrix simultaneously on Imageview
问题 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