Re: CALayer and CGContexts
Re: CALayer and CGContexts
- Subject: Re: CALayer and CGContexts
- From: David Duncan <email@hidden>
- Date: Wed, 30 Jul 2008 12:27:59 -0700
On Jul 30, 2008, at 9:50 AM, John Clayton wrote:
I'm wanting to create a CGImageRef from a quartz based CGContextRef,
so that I can feed a CALayer with it. Is there a preferred way of
doing this? I did think of creating a CGLayer, drawing into it's
context, and then creating a CGImageRef via a CIContext
createCGImage:inRect: call - is that recommended? Or is there a
simpler way?
If you have a bitmap context, you can just call
CGBitmapContextCopyImage() to get an image you can use from it. Can
you explain your situation a bit more?
--
David Duncan
Apple DTS Animation and Printing
email@hidden
_______________________________________________
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