• 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: CGLayer questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGLayer questions


  • Subject: Re: CGLayer questions
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 24 Sep 2008 09:27:27 +0200


Le 24 sept. 08 à 06:04, Alex Reynolds a écrit :

Is it possible to take a CGLayer and turn it into a bitmap representation?

Create a CGBitmapContext and draw you layer into it.


Also, is it possible to grab a CGRect "subset" of a CGLayer and append that to a new CGLayer, so that it isn't necessary to recalculate the entirety of a new CGLayer?



CGContextRef ctxt = CGLayerGetContext(mySecondLayer); CGContextClipToRect(ctxt, …) CGContextDrawLayerInRect(ctxt, myFirstLayer, …);

Thanks,
Alex


_______________________________________________

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: 
 >CGLayer questions (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: How make a cocoa lib wich create a window ?
  • Next by Date: Re: Rendering big PDF into thumbnail bitmap - too blurry
  • Previous by thread: CGLayer questions
  • Next by thread: Rendering big PDF into thumbnail bitmap - too blurry
  • Index(es):
    • Date
    • Thread