gdi32 RradPixel values
Blitz3D Forums/Blitz3D Programming/gdi32 RradPixel values
| ||
Does anyone know what the contstituent RGB (a?) parts are for GDI32's ReadPixel() function? When I use them with WritePixelFast in Blitz3D, the colours come out wring. I can only assume this is because ioif an omitted alpha value, or perhaps the RGB isn't in that order for most/least significant..? |
| ||
http://msdn.microsoft.com/en-us/library/dd183449(v=VS.85).aspx Looks like the high-order byte corresponds to alpha (unused) but the other three are backwards compared to Blitz3D. So presumably you need to swap the blue and the red bytes...? Last edited 2010 |
| ||
That explains it! Thanks, Yasha. I think I'd reversed the entire order putting Alpha on the end (Least) in attempt to convert it. |