Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
- Subject: Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
- From: Nir Soffer <email@hidden>
- Date: Thu, 11 Jan 2007 02:36:03 +0200
On Jan 11, 2007, at 01:18, E. Wing wrote:
Try NSAlphaFirstBitmapFormat
This didn't seem to help. Depending on whether I used
GL_UNSIGNED_BYTE, GL_UNSIGNED_INT_8_8_8_8 or
GL_UNSIGNED_INT_8_8_8_8_REV, the results would range (not in order)
from no better than before, to blue coming out red, to definitely
alpha being in the wrong place (everything colored wrong and strongly
translucent).
I forgot to mention that I'm using GL_BGRA, and not GL_RGBA.
GL_BGRA, with GL_UNSIGNED_INT_8_8_8_8_REV on big endian or
GL_UNSIGNED_INT_8_8_8_8 on intel and NSAlphaFirstBitmapFormat is
working on both PPC and intel.
Best Regards,
Nir Soffer
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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