Masking a Drawable/Bitmap on Android
- by Joshua Rodgers
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 do this is. I certainly have a couple of ideas for how to do this, but they are not optimal.
I need to be able to apply a new mask to the image every so often (the black and white bitmap will change every few seconds).
Any feedback on how to achieve this would be greatly appreciated.