Bitmap bitplanes

Status
Not open for further replies.

Evil Peer

Ars Scholae Palatinae
942
I'm trying to decode some image information to Windows Bitmap format, and all of the data is written exactly right (checked with a hex editor), but I'm getting a picture that looks more like static than what its supposed to look like. Looking at someone else's code for some different image data from this same set, I can see that it uses bitplane decoding, which has something to do with shifting the bits around.

Can someone explain to me the concept of bitmap bitplanes or point me to a good reference document?

---Evil Peer
 
Hum... really? I've poked at BMP's a little and the 24-bit ones are quite simple. Just 3 bytes straight in a row for each pixel. The only SNAFU is that the order is BGR and the scan lines are inverted. For BMP's with less color depth there's a color map so that instead of 24-bits per pixel you just have a 8 or 16bit pointer into a 24-bit value in the colormap.

Or maybe I'm just smoking the good crack. *shrug*

~Kevin
:)
 
Status
Not open for further replies.