I have a picture (https://i.stack.imgur.com/T5HnP.png) which I opening via Bitmap.decodeFile(path);
.
But what I can do with my bitmap to get this picture (https://i.stack.imgur.com/Io7ga.png) as result?
I think I need to apply some kind of color mask on the Bitmap. How I can do that?
UPD I used following code to achieve my result:
image.setImageDrawable(convert(original, 0x7F00FF00));
public BitmapDrawable convert(Bitmap src, int color) {
BitmapDrawable temp = new BitmapDrawable(src);
temp.setColorFilter(new LightingColorFilter(0, color));
return temp;
}
UPD I did my code work! I've just replaced new LightingColorFilter(0, color)
with new LightingColorFilter(color, 0)
. Thank you guys for all your help!