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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com