Skip to content

Instantly share code, notes, and snippets.

@sholloway
Created July 8, 2012 16:12
Show Gist options
  • Save sholloway/3071564 to your computer and use it in GitHub Desktop.
Save sholloway/3071564 to your computer and use it in GitHub Desktop.
List avaible Image I/O inputs and outputs with macruby
framework "Quartz"
puts "Image I/O Input Formats:"
can_read_from = CGImageSourceCopyTypeIdentifiers()
CFShow(can_read_from)
puts " "
puts "Image I/O Output Formats:"
can_write_to = CGImageDestinationCopyTypeIdentifiers()
CFShow(can_write_to)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment