- How to save image larger than device resolution in iPhone?
- UIGraphicsBeginImageContextWithOptions(CGSizeMake(width, height), YES, 1.0f);
- CGContextRef context = UIGraphicsGetCurrentContext();
- //do your drawing
- UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEdnImageContext();
- //your resultant UIImage is now stored in image variable