Skip to content

Instantly share code, notes, and snippets.

@krzysztofzablocki
Created March 28, 2012 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krzysztofzablocki/2224169 to your computer and use it in GitHub Desktop.
Save krzysztofzablocki/2224169 to your computer and use it in GitHub Desktop.
context
CGContextRef bitmapContext = CGBitmapContextCreate(NULL,
rect.size.width,
rect.size.height,
CGImageGetBitsPerComponent(imageRef),
CGImageGetBytesPerRow(imageRef),
CGImageGetColorSpace(imageRef),
kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment