Android Question Anti-aliased clippath or 8bit selection mask

NeoTechni

Well-Known Member
Licensed User
Longtime User
Instead of a binary clippath (pixel is or isn't selected) is there a way to have 8bit/anti-aliased clip path?

Or even a mask? (you have an image that acts as the clip path based on the shade of grey the pixel is)
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
I want to draw a bitmap using a second bitmap as a mask. The mask would control the alpha of each pixel, based on what shade of grey the corresponding pixel in the mask is. white = 0, black=255
I've read it has something to do with Paint.setXfermode
 
Upvote 0

Similar Threads

  • Locked
  • Article
Android Code Snippet [B4X] [XUI] Create a round image
Replies
26
Views
20K
  • Article
Share My Creation Pixel_Studio
Replies
27
Views
4K
  • Article
Android Code Snippet Draw round bitmap
Replies
6
Views
10K
Top