Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
- Subject: Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
- From: David Duncan <email@hidden>
- Date: Mon, 2 Mar 2009 09:12:39 -0800
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 (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