Hi All,
I am wondering if there is a way to clear the content of a clipped region in a canvas?
I tried the obvious but that didn't work.
In another post Erel states that we can use DrawRect to clear: https://www.b4x.com/android/forum/posts/284787/
Any idea on how this could be done?
I am wondering if there is a way to clear the content of a clipped region in a canvas?
I tried the obvious but that didn't work.
B4X:
Sub ClearRegoin(cnvs As Canvas,Region As List)
cnvs.ClipPath(Region)
cnvs.ClearRect(0,0,cnvs.Width,cnvs.Height)
cnvs.RemoveClip
End Sub
In another post Erel states that we can use DrawRect to clear: https://www.b4x.com/android/forum/posts/284787/
Any idea on how this could be done?