The invisible man

This commit is contained in:
M66B 2020-11-14 15:23:34 +01:00
parent ceb00f7d91
commit a955c21b17
1 changed files with 5 additions and 1 deletions

View File

@ -530,7 +530,11 @@ class ImageHelper {
d.setBounds(0, 0, w, h);
//d.setColorFilter(Color.GRAY, PorterDuff.Mode.DST_OVER);
if (view instanceof TextView) {
int tc = ((TextView) view).getCurrentTextColor();
int bg = ColorUtils.setAlphaComponent(tc, Math.round(255 * 0.05f));
d.setColorFilter(bg, PorterDuff.Mode.DST_OVER);
}
}
static Bitmap getDataBitmap(String source) {