views:

12

answers:

1

I am trying to figure out the format of a Windows bitmap file that is monochrome. From what I can tell, the scanlines are padded on the end to maintain DWORD alignment. However, any data I save is garbled like it's interleaved when viewed from mspaint. However, if the width and height of the image are the same, the data is not garbled when viewed from mspaint.

Am I missing something about byte ordering? -TIA

A: 

Nevermind... I just missed where I mixed the width and height in the bitmapinfoheader structure... :) my bad