Android : Make image opaque / transparent

后端 未结 1 731
长情又很酷
长情又很酷 2020-12-19 20:59

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 surfac

相关标签:
1条回答
  • 2020-12-19 21:02

    This is how I do it before drawing my shapes.

    Bitmap buffer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_4444);
    buffer.eraseColor(Color.TRANSPARENT);
    
    0 讨论(0)
提交回复
热议问题