kiki78 Active Member Licensed User Longtime User Apr 30, 2014 #1 I have problem with DrawRect with Colors.Transparent. Any transparent color construct with Colors.ARGB(A, R, G, B) with A = 0 and any of R, G or B <> 0 work fine, but with all 0 it draw black. Best Regards,
I have problem with DrawRect with Colors.Transparent. Any transparent color construct with Colors.ARGB(A, R, G, B) with A = 0 and any of R, G or B <> 0 work fine, but with all 0 it draw black. Best Regards,
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2014 #2 When you call DrawRect with Colors.Transparent (all 0) then it creates a "hole" in the canvas. This allows you to erase parts of the canvas and show the background. Upvote 0
When you call DrawRect with Colors.Transparent (all 0) then it creates a "hole" in the canvas. This allows you to erase parts of the canvas and show the background.
kiki78 Active Member Licensed User Longtime User Apr 30, 2014 #3 Ok, so this is not a bug but a "by design". So when I doesn't want this, I just need to test value before draw. Thank you Erel. Upvote 0
Ok, so this is not a bug but a "by design". So when I doesn't want this, I just need to test value before draw. Thank you Erel.