Re: CIContext to NSImage
Re: CIContext to NSImage
- Subject: Re: CIContext to NSImage
- From: Michael Watson <email@hidden>
- Date: Wed, 5 Dec 2007 19:03:38 -0500
If you're targeting >= 10.4, simply lock focus onto an NSImage and
draw the contents of your CIContext with one of the draw methods of
CIContext. If you're targeting >= 10.5, you can do that or render the
CIContext's contents as bitmap data, use it as an NSBitmapImageRep
data source, and then add that representation to an NSImage.
--
m-s
On 05 Dec, 2007, at 15:54, Jason Barker wrote:
How should one go about getting the data from a CIContext into an
NSImage object?
Thanks,
Jason
_______________________________________________
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:
@bungie.org
This email sent to email@hidden
_______________________________________________
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