Re: CGLayer questions
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