android - How to decrease black colour for ColorMatrix -


enter image description hereenter image description herei have used code snippet,how can reduce black color on here.

 colormatrix colormatrix = new colormatrix();         colormatrix.setsaturation(0);         float brightness = (float)(bar.getprogress());//it can 0-128         float m = 205f;         float t = -255*brightness;         colormatrix threshold = new colormatrix(new float[] {                 m, 1, 0, 1, t,                 0, m, 1, 1, t,                 1, 0, m, 1, t,                 0, 1, 0, 1, 0         }); 

after above implementation image become black.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -