CoreGraphics Image I/O Documentation
CoreGraphics Image I/O Documentation
- Subject: CoreGraphics Image I/O Documentation
- From: Kevin Meaney <email@hidden>
- Date: Sun, 28 Jul 2013 13:40:54 +0100
Hi,
Just checked on lists for an e-mail list on CoreGraphics or Image I/O without seeing an obviously appropriate list. So since I'm already subscribed here I thought I'd give this list a shot.
In the header file for CGImageSource.h the only key that is listed as appropriate for the options dictionary passed into CGImageSourceCreateWithDataProvider, or CGImageSourceCreateWithData, or CGImageSourceCreateWithURL is kCGImageSourceTypeIdentifierHint.
Yet the code scrap in the "Image I/O Programming Guide / Creating and using Image Sources" sets up the options dictionary with keys: kCGImageSourceShouldCache, and kCGImageSourceShouldAllowFloat which the notes in the header files says should be used in the options dictionary which is passed into the functions which create a CGImage (CGImageRef) CGImageSourceCreateImageAtIndex. In the code scrap when CGImageSourceCreateImageAtIndex is called NULL is passed in for the options dictionary.
What is correct?
Kevin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden