Hi,
I've come across a strange problem, and I'm not sure where to start looking for the solution.
I'm loading a PNG image with transparency into an CGapiRGBASurface, where the pixel at 0,0 of the image is pure red. The format of the surface is 565A.
After I get to that pixel location using GetBuffer() & pBuffer, the WORD content of pixel 0,0 is 0x00ff, and that when turned to a colorref using gd565::NativeToColorref() gives 0x00f81c00... Not red at all...
I'm using the pitches and pBuffer correctly, because I can find all RGB(0,0,0) in the image correctly.
Is there something special I should know about RGBA surface memory?
Thanks!
--Eric
I've come across a strange problem, and I'm not sure where to start looking for the solution.
I'm loading a PNG image with transparency into an CGapiRGBASurface, where the pixel at 0,0 of the image is pure red. The format of the surface is 565A.
After I get to that pixel location using GetBuffer() & pBuffer, the WORD content of pixel 0,0 is 0x00ff, and that when turned to a colorref using gd565::NativeToColorref() gives 0x00f81c00... Not red at all...
I'm using the pitches and pBuffer correctly, because I can find all RGB(0,0,0) in the image correctly.
Is there something special I should know about RGBA surface memory?
Thanks!
--Eric