Format - bitmap

A bitmap definition consists of:

Then, if the number of bits per pixel is zero:

For type 0 (paletted bitmap):

For encoding 1 (RLE encoding):

All other encodings are reserved. If one is encountered, the bitmap cannot be decoded.

For type 1 (PNG bitmap):

All other types are reserved. If one is encountered, the bitmap cannot be decoded.

If the number of bits per pixel is greater than zero (deprecated):

Next, we have a warp.

Bitstream version 0.4 starts making use of this warp:

Next, the data ends.