• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CIContext to NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CIContext to NSImage (From: "Jason Barker" <email@hidden>)

  • Prev by Date: Re: Canonical way of loading compound UI components from a NIB into some other UI?
  • Next by Date: New York CocoaHeads - Thursday, Dec. 13
  • Previous by thread: CIContext to NSImage
  • Next by thread: Diagnosing NSString error in Leopard
  • Index(es):
    • Date
    • Thread