Adventure Game Studio

Community => General Discussion => Topic started by: on Wed 04/02/2004 03:37:30

Title: BMP file format
Post by: on Wed 04/02/2004 03:37:30
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. :-)
Title: Re:BMP file format
Post by: Gilbert on Wed 04/02/2004 03:51:34
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 (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 (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.