Convert GWorldPtr into a NSImage
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