Bitmap files
(BMP)
BMP files
are an historic (but still commonly used) file format for
the windows family of operating systems. BMP images
can range from black and white (1 bit per pixel) up to 24
bit colour (16.7 million colours). While the images can be
compressed, this is rarely used in practice.
A BMP file consists of either 3
or 4 parts. The first part is a header, this is followed by
a information section, if the image is indexed colour then
the palette follows, and last of all is the pixel data. The
position of the image data with respect to the start of the
file is contained in the header. Information such as the
image width and height, the type of compression, the number
of colours is contained in the information header.