Skip to content

Instantly share code, notes, and snippets.

@codeswimmer
Created December 19, 2011 16:56
Show Gist options
  • Select an option

  • Save codeswimmer/1497966 to your computer and use it in GitHub Desktop.

Select an option

Save codeswimmer/1497966 to your computer and use it in GitHub Desktop.
iOS: How to get bytes from an image
CGDataRef imageDataRef = CGDataProviderCopyData(CGImageGetDataProvider(myCGImageRef)));
// CGDataProviderCopyData copies underlying bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment