Re: CGImageRef to bitmap context? [SOLVED]
Re: CGImageRef to bitmap context? [SOLVED]
- Subject: Re: CGImageRef to bitmap context? [SOLVED]
- From: Uli Kusterer <email@hidden>
- Date: Tue, 14 Aug 2007 09:31:59 +0200
On 13.08.2007, at 21:42, David Duncan wrote:
However, if you wanted to implement something like this, a CGImage
itself isn't a very expensive structure to maintain (the image data
is typically far more expensive, as are any cached representations
that may be created when you draw it). If you wanted to do
something like this, you could create a group of related CGImages
and on-demand data providers that created the representation when
you wanted it. Then you just use the appropriate image ref and the
proper representation is created on demand.
Either that, or cop out and just use NSImage, which does all the
caching and representation-storing and what-not for you :^)
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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