Skip to content

Instantly share code, notes, and snippets.

@carlosmcevilly
Created December 13, 2011 19:42
Show Gist options
  • Save carlosmcevilly/1473566 to your computer and use it in GitHub Desktop.
Save carlosmcevilly/1473566 to your computer and use it in GitHub Desktop.
Get underlying data from a CGImage
CGDataRef imageDataRef = CGDataProviderCopyData(CGImageGetDataProvider(myCGImageRef)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment