• 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: Copying raw RGBA image data to NSBitmapImageRep coming out funny
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
      • From: "E. Wing" <email@hidden>
    • Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
      • From: "E. Wing" <email@hidden>
References: 
 >Copying raw RGBA image data to NSBitmapImageRep coming out funny (From: "E. Wing" <email@hidden>)
 >Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny (From: Nir Soffer <email@hidden>)
 >Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny (From: "E. Wing" <email@hidden>)

  • Prev by Date: QTKit quick question
  • Next by Date: Re: fast bitmap image scaling
  • Previous by thread: Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
  • Next by thread: Re: Copying raw RGBA image data to NSBitmapImageRep coming out funny
  • Index(es):
    • Date
    • Thread