On Mar 1, 2009, at 11:46 PM, Florian Soenens wrote:

Actually we are just looking for the fastest way of creating a 72 dpi image (thumbnail) of our original 400 dpi image. It seemed that CGImageSourceCreateThumbnailAtIndex was the fastest way to do this.


The thumbnail image isn't guaranteed to be of any particular DPI (unless the image source is PDF). If you want an image at a particular DPI, then I would get the image properties dictionary via CGImageSourceCopyPropertiesAtIndex() to get the size and DPI of the image, then use that value to calculate an appropriate value for the kCGImageSourceThumbnailMaxPixelSize key.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to