Erase x,y point of drawing image

Hi,
I am working on color apps and now stuck on the erase point.
when user draw an image and do some mistake after that if he/she click on the eraser then then whole drawing is erased. But I want to erase that specific area where user touch.
If any idea then suggest me.

Thanks, [import]uid: 75428 topic_id: 13230 reply_id: 313230[/import]

If the line they draw is made up of only one object then it’s not possible to only erase part of it. (Just like if you used a standard photo you could not erase only little bits of it.) [import]uid: 52491 topic_id: 13230 reply_id: 48565[/import]

Hi,
The line they draw is made up with various object(means I have image joker image and user create point or draw line over an image with his/her favorite color) and with one object.

Thanks. [import]uid: 75428 topic_id: 13230 reply_id: 48577[/import]

If the whole drawing is being erased then it sounds like it is one object - can you share some code, please? It’s hard to understand what’s happening here without it. [import]uid: 52491 topic_id: 13230 reply_id: 48755[/import]

I think there’s a scratch lottery ticket sample in the code exchange where they do something similar what you’re trying to achieve. Think they used masks, search for that.

I haven’t played around with that myself, I just had a quick glance at the sample code. [import]uid: 13560 topic_id: 13230 reply_id: 48759[/import]

Oooh, nice thinking Lano!

Here’s a link to that sample, it could potentially help with what you’re trying to achieve; http://developer.anscamobile.com/code/corona-lottery-scratch-ticket [import]uid: 52491 topic_id: 13230 reply_id: 48986[/import]