Skip to content

MI Bitmap Format

dpeddi edited this page Sep 12, 2017 · 7 revisions

The MI bitmap file format isn't a Windows Bitmap.

It seems a Raw indexed image (with a palette).

0x00000-0x0002: BMd
0x00003-0x0003: always 0
0x00004-0x0004: width
0x00005-0x0005: always 0
0x00006-0x0006: height
0x00008-0x0008: stride (= roundup(width*depth/8) )
0x00009-0x0009: always 0
0x0000A-0x000A: depth (bpp)
0x0000B-0x000C: number of word (4 bytes) composing the palette?
0x0000D-0x000F: 0-1 transparency
0x00010-??????: Palette
0x?????- : raw image

The image can be viewed using gimp (Raw image data functionality, by setting the offset and the image width) or 7yuv (by setting View->Header size and the image width)

Clone this wiki locally