The BMP, or Bitmap Format, is a file format created by Microsoft in the early 1990s. The file is split into 3 chunks - the usual File Header chunk, the optional Palette Chunk, and the required bitmap chunk.
Header#
A file header stores information about files, in this case the Image Size. Below is easy-to-read code made in QBasic and a translated version of how the code would be in human readable form when loading a 256-Colo(u)r (8BPP) file.
QB Code |
Human Readable Form |
|---|---|
|
|
The Palette (Can Be Stored in ".PAL")#
Determining BPP and Palette Byte Size#
BPP |
Colo(u)r Count |
|---|---|
1 |
2 |
2 |
4 |
4 |
16 |
8 |
256 |
Data Structure#
Being padded by 4 bytes, it would be stored as BGR (Blue, Green, Red).
Bitmap Structure#
The image is stored upside-down and each scanline is padded by 4 bytes.
For more detailed specification, see the Bitmap File Specification.
|
Audio Formats | |
|---|---|
|
Nintendo DS |
Nitro Sound Container/SDAT (SSEQ, STRM) • Digital Sound Elements (SMDL) |
|
Game Boy Advance |
|
|
PlayStation 2 |
|
|
Wii |
|
|
Various |
BWSB Sound Format • MP3 • OGG • OPUS • WAV |
|
Graphic Formats | |
|
Various |
|
|
Windows |
|
|
Video Formats | |
|
Various |
|
|
Executable Formats (OS-specific) | |
|
DOS |
|
|
Windows |
|
|
Executable Formats (Game-specific) | |
|
Deus Ex |
|