Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.36 KB  |  views: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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