Re: CGImageRef to bitmap context? [SOLVED]
Re: CGImageRef to bitmap context? [SOLVED]
- Subject: Re: CGImageRef to bitmap context? [SOLVED]
- From: Scott Thompson <email@hidden>
- Date: Mon, 13 Aug 2007 13:30:56 -0500
On Aug 13, 2007, at 1:10 PM, David Duncan wrote:
Image IO (and the JPEG/PNG providers) do this by default. You can
request that Image IO not do this using the
kCGImageSourceShouldCache property (set to true) when you request an
image, but as it implies, that is more of a request than a
requirement. Unless you need maximum drawing performance (and can
prove that caching the image helps) you should not specify this
property, as it will consume considerably more memory for each image
loaded.
It also seems possible that CGImage could potentially store more than
one representation behind it's façade. (I'm not trying to imply that
it does, but it could). I could imagine where a CGImage contains more
than one cached representation of an image... say for drawing the
images into different destination color spaces. If you could ask the
CGImage for a pixel, it wouldn't know which cached image it should
take the pixel value from.
Scott
_______________________________________________
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