I am trying for a image relaterd i-phone application.I am using a line of code
CGContextDrawImage(context1, CGRectMake(0, 0, width, height), imageRef);
I am working with multiple images.So i want to clear the screen after this .Any built in function using for this (Like in C we can use cleardevice in graphics).Any help appreciating.
Check out CGContextFillRect – just set the rect to be the whole view and the brush to be solid white 🙂
For example, to clear the image you just drew with white :