Forum Discussion
Altera_Forum
Honored Contributor
12 years agoAssuming it's a none compressed bitmap, you need to decode the bitfield
The BITFIELD mechanism described above allows for the definition of tens of thousands different pixel formats, however only several of them are used in practice,[12] such as: R.G.B.A.X 8.8.8.0.0 8.8.8.0.8 8.8.8.8.0 5.5.5.0.1 5.5.5.1.0 5.6.5.0.0 4.4.4.0.4 4.4.4.4.0 All palettized formats (marked in yellow in the table above) For 16 bit pixels, the most common is probably going to be 5.6.5.0.0 which is 5 bits Red, 6 bits green and 5 bits blue with no alpha and no unused bits. Green will always be in the center if you get the red and blue wrong, the color will be off, but you can swap that easily enough. Pete