CALayer and CGContexts

2008-07-30 Thread John Clayton
Hi 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

Re: CALayer and CGContexts

2008-07-30 Thread David Duncan
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