Advertisement
Guest User

Untitled

a guest
May 2nd, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. How to save image larger than device resolution in iPhone?
  2. UIGraphicsBeginImageContextWithOptions(CGSizeMake(width, height), YES, 1.0f);
  3. CGContextRef context = UIGraphicsGetCurrentContext();
  4.  
  5. //do your drawing
  6.  
  7. UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
  8. UIGraphicsEdnImageContext();
  9.  
  10. //your resultant UIImage is now stored in image variable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement