Coder's Guild Mailing List

Re: Bitmap problem

Posted by Bean on 1999-03-11

> FileOffset = (bmp->header.width*bmp->header.height);


The problem might be that the size (in bytes) of each bmp line is rounded
up to the next multiple of 4. So if a picture line is 397 bytes wide, each
line is stored as 400 bytes. In my programs I keep a variable named
BytesPerLine that I use when reading in the bmp.

Hope this helps, 
Bean, thitt@xxxxxxxx.xxx