0

I write this link's answer code to create ImageViewLayer and Imageview. StackOverflow Link

This link gives me the below result.

enter image description here enter image description here

It's work fine .But I want ,when user press the original button... and then touches with finger it remove the clear area ang fill with the previous one.

And how to create Undo Functionality for this..If any question regarding this please add your comment..Please help me...

Community
  • 1
  • 1
Milan patel
  • 223
  • 2
  • 15

1 Answers1

1

how to draw CALayer with line path like simulate eraser effect?

this is the post i get the answer. there is a sample code about the effect. what you are different is change the gray color layer to be the "paper imager"

hope it help you

Community
  • 1
  • 1
Steve Lai
  • 633
  • 1
  • 7
  • 18
  • When user pressed original (in the Above Image described) button and then touch in screen, At that time the Clear mode fill with the previous one.. – Milan patel Dec 12 '14 at 08:09