Skip to content Skip to sidebar Skip to footer

Android : Make Image Opaque / Transparent

Greetings, I would like to place an image over a surfaceview. However I would like the image to be transparent so you can see the image and also the undlying surfaceview. Can anyo

Solution 1:

This is how I do it before drawing my shapes.

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

Post a Comment for "Android : Make Image Opaque / Transparent"