Erase what i drawing



I would like to erase the last thing I draw and not have everything the same as it is now
can someone help me please

Two options:

  1. Create an eraser, then manually remove the part you do not want

  2. Record the drawing of your line to a list of points. Replay the drawing from the list of points using the background colour, to remove the last drawn line. You could have several levels of undo if you wish.

thank you for the quick answers to my question, but I don't understand what you mean and how to apply this in blocks

These blocks will work to undo the last line your draw:

(assumes your canvas backgroundColour is white, paintColour is black, and lineWidth is 2.0)


for example if I draw 3 lines and want to erase them, 1 line, the last one I drew, disappears but not the 2nd line

This aia example can perform multiple undo

drawLineUndo.aia (3.3 KB)

You may need to add some if/else statements to the canvas touch up and touch down events for other canvas activities in your app.

Or you can save the canvas drawing as base64 string, then restore it when needed.

Save canvas as base64 need extensions.
Search the community to find the extension.

how can i increase the line thickness please

set canvas. lineWith

thank you it works

now save and load in and out of my tablet picture file , and that's all I want ,this is what i already have with your help

who can help me

You have three examples, what do you need help with ?

I want to save my drawing image in a photo file on my tablet and also be able to download it back please

Use one of these two blocks to store your drawing as an image:

image

Use this block to load an image to the canvas:

image


is this all okay, I can't find the image on my tablet under images , pictures , help mi please

When in companion app, run Do It on this block:

image

this will show you the file path.