Skip to content

Instantly share code, notes, and snippets.

@larsacus
Created November 14, 2011 21:52
Show Gist options
  • Save larsacus/1365311 to your computer and use it in GitHub Desktop.
Save larsacus/1365311 to your computer and use it in GitHub Desktop.
"Eager" image deserialization - not mine - not sure where I found it - or how useful it may be...
UIGraphicsBeginImageContextWithOptions(size,YES,0.0);
[image drawInRect:CGRectMake(0, 0, size.width, size.height)];
UIImage *deserializedImage = UIGraphicsGetImageFromCurrentImageContext()];
UIGraphicsEndImageContext();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment