Android Question Removing a canvas

Mark.S

Member
Licensed User
I need to turn on/off a canvas which a 4dip red line has been drawn around two adjacent labels with a arrow pointing to a third label.

On another point I should have upgraded to your latest version with the auto backup.
i've just lost a weeks work, PC blue screened, solid drive has failed :(
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You have two options:

1. Clear the drawing with Canvas.DrawColor or B4XCanvas.ClearRect.
2. If you really want to "remove" the canvas then draw over a mutable bitmap with Canvas.Initialize2. Set the view background to be a BitmapDrawable when you want to draw over it and set it to whatever other background you like when it is not needed.


Start with option #1.
 
Upvote 0
Top