Skip to content

Instantly share code, notes, and snippets.

@eneko
Created August 11, 2014 16:23
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 eneko/b19dfeeb2047d3ff96d9 to your computer and use it in GitHub Desktop.
Save eneko/b19dfeeb2047d3ff96d9 to your computer and use it in GitHub Desktop.
let image:CGImage = representation.fullScreenImage().takeUnretainedValue()
NSLog("%d: size %u x %u", index, CGImageGetWidth(image), CGImageGetHeight(image))
let latestPhoto = UIImage(CGImage: image)
NSLog("%d size: %lu x %lu", index, latestPhoto.size.height, latestPhoto.size.width)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment