BMP file format

Started by BernardoR, Wed 04/02/2004 03:37:30

Previous topic - Next topic

BernardoR

Several years ago, I wrote a simple BMP reader, which works most of the time by assuming a given index on the files where the pixel data starts. But the BMP file's header seems change in size with different files. I can't find anything that explains in any way that I can understand what the BMP file's header is consisted of. If anyone could post a description along the lines of "2 bytes for something, followed by 4 bytes for something," and so on, I would be extremely grateful.

By the way, I apologize if this isn't about AGS, which I have downloaded and think it rocks.  But I do like to reinvent my own wheels. :-)

Gilbert

Well, you can always search for pages with file formats, as BMP is a popular and common one, it should be easy to find, one I'd found is:
http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html

Years ago, I also did wrote some programme converting from some (now obsolete) format into BMP, which you can also look at:
http://dfg.the-underdogs.org/hosted/gich/download/pyx2bmp.zip

Moreover, this forum is ONLY for AGS related tech. problems, so I'm now moving this thread.

SMF spam blocked by CleanTalk