This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.36 KB  |  views: 17  |  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();
  5. //do your drawing
  7. UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
  8. UIGraphicsEdnImageContext();
  10. //your resultant UIImage is now stored in image variable
clone this paste RAW Paste Data