NeoTechni Well-Known Member Licensed User Longtime User Mar 28, 2015 #1 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)
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)
Erel B4X founder Staff member Licensed User Longtime User Mar 29, 2015 #2 It is possible to create a mask. However why not use two layers? It will be simpler. Upvote 0
NeoTechni Well-Known Member Licensed User Longtime User Mar 29, 2015 #3 Layers? I don't follow. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 29, 2015 #4 What exactly are you trying to implement? I thought that you were asking about a selection box. Upvote 0
NeoTechni Well-Known Member Licensed User Longtime User Mar 29, 2015 #5 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
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
Erel B4X founder Staff member Licensed User Longtime User Mar 30, 2015 #6 This library should allow you to do this: https://www.b4x.com/android/forum/threads/abextdrawing-1-0.14638/#content Upvote 0
This library should allow you to do this: https://www.b4x.com/android/forum/threads/abextdrawing-1-0.14638/#content