In my iOS app I have an image, that the user can touch and draw a path on it. I store all the touch (move) points in an array and then, when the path closed, I draw the path on the image. This works. Now, when the user touches (long press) this part of image, I want to copy it and make a new image from it.
How can I copy only that part of image? (as shown in the attached picture)
Thanks.