• 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
Convert GWorldPtr into a NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Convert GWorldPtr into a NSImage


  • Subject: Convert GWorldPtr into a NSImage
  • From: Eric Gorr <email@hidden>
  • Date: Tue, 6 Jan 2009 18:03:27 -0500

I need a reliable way to convert a GWorldPtr into a NSImage.

I've tried searching for some sample code, but I cannot seem to find any for the direction I want to go in...

Anyone have any pointers to some sample code that will do this?

I have something that comes close, but the problem I believe is that the pixelFormat for the GWorldPtr is BGRA. When I tried to setup a NSBitmapImageRep, I tried NSDeviceRGBColorSpace for the colorSpaceName which I believe expects the pixelFormat for the GWorldPtr to be either RGBA or ARGB.

Thank you.
_______________________________________________

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: Convert GWorldPtr into a NSImage
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Maintaining mutable values with NSDictionaryControllerKeyValuePair
  • Next by Date: Re: Enum advice please (resend not sure if it was delivered ?)
  • Previous by thread: Re: Maintaining mutable values with NSDictionaryControllerKeyValuePair
  • Next by thread: Re: Convert GWorldPtr into a NSImage
  • Index(es):
    • Date
    • Thread