Re: setting a CGContextRef to the current Context
Re: setting a CGContextRef to the current Context
- Subject: Re: setting a CGContextRef to the current Context
- From: "Adam R. Maxwell" <email@hidden>
- Date: Wed, 08 Jul 2009 16:12:31 -0700
On Jul 8, 2009, at 4:03 PM, David Alter wrote:
I have CGContextRef that I use for some quartz calls. It is a bitmap
context. I would like to set it as the current context so that I can
use
NSString drawAtPoint: withAttributes:. I do not see how to do this.
NSGraphicContext setCurrentContext: takes a NSGraphicContext and not
an
CGContextRef. I do not see a way to create a NSGraphicContext with a
CGContextRef.
Use +[NSGraphicsContext graphicsContextWithGraphicsPort:flipped:].
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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