BMP Image: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
Line 13: Line 13:
// little endian
// little endian


//header
// header
2 bytes (char) - magic // "BM"
2 bytes (char) - magic // "BM"
4 bytes (uint32) - size of the BMP file
4 bytes (uint32) - size of the BMP file
2 bytes - reserved
4 bytes - reserved
2 bytes - reserved
4 bytes (uint32) - offset of image data
4 bytes (uint32) - offset of image data


//DIB header  
// DIB header / Info header
x bytes - DIB header
4 bytes (uint32) - size of info header
4 bytes (uint32) - bitmap width in pixels
4 bytes (uint32) - bitmap height in pixels
2 bytes (uint16) - number of color planes  // must be "1"
2 bytes (uint16) -


//bit masks (optional)
 
 
// bit masks (optional)
x bytes - extra bit masks  
x bytes - extra bit masks  


//color table (optional)
// color table (optional)
x bytes - color table
x bytes - color table


//pixel array
// pixel array
x bytes - pixel array
x bytes - pixel array
</pre>
</pre>

Revision as of 20:10, 4 January 2021

BMP


Format Specifications

// BMP file format (image)

// little endian

// header
2 bytes (char) - magic // "BM"
4 bytes (uint32) - size of the BMP file
4 bytes - reserved
4 bytes (uint32) - offset of image data

// DIB header / Info header
4 bytes (uint32) - size of info header
4 bytes (uint32) - bitmap width in pixels
4 bytes (uint32) - bitmap height in pixels
2 bytes (uint16) - number of color planes   // must be "1"
2 bytes (uint16) - 



// bit masks (optional)
x bytes - extra bit masks 

// color table (optional)
x bytes - color table

// pixel array
x bytes - pixel array

MultiEx BMS Script

Not written yet.

Notes and Comments

Generic Bitmap *.bmp Image.

Games

List of games using this file format:

Compatible Programs