• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CALayer and CGContexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CALayer and CGContexts (From: John Clayton <email@hidden>)

  • Prev by Date: Re: registration code issues
  • Next by Date: Re: registration code issues
  • Previous by thread: CALayer and CGContexts
  • Next by thread: readFromURL for the current document window, versus a new document window
  • Index(es):
    • Date
    • Thread