Skip to content

Instantly share code, notes, and snippets.

@aral
Created February 17, 2015 21:42
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 aral/c2eefbd99a16d7efe0f5 to your computer and use it in GitHub Desktop.
Save aral/c2eefbd99a16d7efe0f5 to your computer and use it in GitHub Desktop.
Please, make it stop!
let cgContext:CGContextRef = CGBitmapContextCreate(nil, UInt(resolutionForExport.width), UInt(resolutionForExport.height), 8, 4*UInt(resolutionForExport.width), colorSpace, CGBitmapInfo.ByteOrderDefault|CGBitmapInfo(CGImageAlphaInfo.PremultipliedLast.rawValue))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment