Removing (parts of) Canvas

XverhelstX

Well-Known Member
Licensed User
Longtime User
Hey,

I'm drawing some stuff on a panel with a Canvas.

B4X:
Sub pnlDraw_Touch (Action As Int, X As Float, Y As Float)
lblX.Text = "X= " & X
lblY.Text = "Y= " & Y
Canvas1.DrawCircle(x, y, 10dip, Colors.Red, True, 10dip)
pnlDraw.Invalidate()
   
End Sub

But how can I perform an 'undo' action, to return to the prev state.
So basically I want to know how to delete/remove a part and how you can clean up the whole panel.

XverhelstX
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…