setting a CGContextRef to the current Context
setting a CGContextRef to the current Context
- Subject: setting a CGContextRef to the current Context
- From: David Alter <email@hidden>
- Date: Wed, 8 Jul 2009 16:03:07 -0700
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. Nor do I see anything in the C API. So I'm a little unclear
how I can set my bitmap Context to the current context so I can draw my
string. Anyone have any ideas.
thanks for the help.
-dave
_______________________________________________
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