• 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: Converting a CFImageRef to a NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting a CFImageRef to a NSImage


  • Subject: Re: Converting a CFImageRef to a NSImage
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 5 Jun 2008 18:06:59 -0600


On Jun 5, 2008, at 5:35 PM, Felipe Monteiro de Carvalho wrote:

And I converted and adapted it to Pascal in my full code bellow, but I
keep getting an error saying that the context is invalid. Does anyone
know why?


No, but I think you're making this too difficult. Assuming you mean "CGImageRef" (I don't know what a CFImageRef is), then just use - [NSBitmapImageRep initWithCGImage:] and then add the resulting image rep to an NSImage instance.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


  • Follow-Ups:
    • Re: Converting a CFImageRef to a NSImage
      • From: "Felipe Monteiro de Carvalho" <email@hidden>
References: 
 >Converting a CFImageRef to a NSImage (From: "Felipe Monteiro de Carvalho" <email@hidden>)

  • Prev by Date: Re: PMSessionEndDocumentNoDialog error code -43
  • Next by Date: Re: Converting a CFImageRef to a NSImage
  • Previous by thread: Re: Converting a CFImageRef to a NSImage
  • Next by thread: Re: Converting a CFImageRef to a NSImage
  • Index(es):
    • Date
    • Thread