Masking a Drawable/Bitmap on Android

Posted by Joshua Rodgers on Stack Overflow See other posts from Stack Overflow or by Joshua Rodgers
Published on 2010-04-12T17:08:17Z Indexed on 2010/04/12 17:13 UTC
Read the original article Hit count: 527

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about android

Related posts about bitmap