Re: CIContext drawing issue.
Re: CIContext drawing issue.
- Subject: Re: CIContext drawing issue.
- From: Darkshadow <email@hidden>
- Date: Tue, 27 Feb 2007 12:44:29 -0500
On Feb 27, 2007, at 1:07 PM, Cloud Strife wrote:
myCIContext = [[CIContext alloc] init];
This is your problem, you need to get an actual CIContext object from
either a CGContext, NSGraphicsContext, or NSOpenGL context. Depends
on what you're using to draw from. You can't simply -alloc and -init
a CIContext.
Most likely, in this instance, you'll want to get the CIContext from
the NSGraphicsContext. See:
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSGraphicsContext_Class/Reference/
Reference.html#//apple_ref/occ/instm/NSGraphicsContext/CIContext>
and the CIContext reference:
<http://developer.apple.com/documentation/GraphicsImaging/Reference/
QuartzCoreFramework/Classes/CIContext_Class/Reference/Reference.html>
------------------------------------------------
Darkshadow
(aka Michael Nickerson)
http://www.nightproductions.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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