Skip navigation
Currently Being Moderated

Texture.uploadFromByteArray() and BitmapData ARGB

May 2, 2012 6:47 PM

Hi,

 

I can't unserstand - how I can upload BitmapData.getPixels if uploadFromByteArray use BGRA colorspace and BitmapData.getPixels returns ARGB

 

What I should to do ?

 
Replies
  • Currently Being Moderated
    May 3, 2012 7:15 AM   in reply to Anton Azarov

    Try getPixel32 which returns ARGB. Here's the link:

     

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/display/BitmapData.html

     

    That's just to BitmapData. You will find the method getPixel32 there.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points