Masking a Drawable/Bitmap on Android

后端 未结 5 1625
挽巷
挽巷 2020-12-28 17:12

I\'m currently looking for a way to use a black and white bitmap to mask the alpha channel of another bitmap or Drawable on Android. I\'m curious as to what the best way to

5条回答
  •  时光取名叫无心
    2020-12-28 17:37

    I made a maskable layout. It's a framelayout where you can specifiy the xporterduffmode and the mask. You can find it here: https://github.com/christophesmet/android_maskable_layout

提交回复
热议问题