android - How to decrease black colour for ColorMatrix -
i 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
Post a Comment