.bmp file format of Heroes of Might and Magic: format specification

Application

Heroes of Might and Magic

File extension

bmp

KS implementation details

License: CC0-1.0

This page hosts a formal specification of .bmp file format of Heroes of Might and Magic using Kaitai Struct. This specification can be automatically translated into a variety of programming languages to get a parsing library.

Block diagram

Format specification in Kaitai Struct YAML

meta:
  id: heroes_of_might_and_magic_bmp
  application: Heroes of Might and Magic
  file-extension: bmp
  license: CC0-1.0
  endian: le
seq:
  - id: magic
    type: u2
  - id: width
    type: u2
  - id: height
    type: u2
  - id: data
    size: 'width * height'