Android: Make the image opaque / transparent

Greetings

I would like to place the image on top of the view. However, I would like the image to be transparent so that you can see the image, as well as a hidden view of the surface. Can anyone suggest how I can do this?

+3
source share
1 answer

Here's how I do it before drawing my shapes.

Bitmap buffer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_4444);
buffer.eraseColor(Color.TRANSPARENT);
+6
source

Source: https://habr.com/ru/post/1724281/


All Articles