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
Top