Sunday, October 11, 2009

iPhone dev Stupidity 62: draw on bitmap

Start a new context:

UIGraphicsBeginImageContext(origPic.size);

...

UIImage *newPic = UIGraphicsGetImageFromCurrentImageContext(); 

UIGraphicsEndImageContext();



No comments: