I am trying to make a simple drawing application for the iPad where you can draw a picture, and I use the CGContext material for this, but the way I originally planned to do the erasing was just to draw the material using white ... except that I just I realized today that it does not work when you draw on another image, because then when you βeraseβ you also βclearβ the background image.
Is there a way to support the actual erasure?
Thanks!
source share