The BMP file format

BMP is a standard file format for computers running the Windows operating system. The format was developed by Microsoft for sotoring bitmap files in a device-independent bitmap (DIB) format that will allow Windows to display the bitmap on any type of display device. The term “device independent” means that the bitmap specifies pixel color in a form independent of the method used by a display to represent color.

General information

Since BMP is a fairly simple file format, its structure is pretty straightforward. Each bitmap file contains:

  • a bitmap-file header: this contains information about the type, size, and layout of a device-independent bitmap file.
  • a bitmap-information header which specifies the dimensions, compression type, and color format for the bitmap.
  • a colour table, defined as an array of RGBQUAD structures, contains as many elements as there are colours in the bitmap. The colour table is not present for bitmaps with 24 color bits because each pixel is represented by 24-bit red-green-blue (RGB) values in the actual bitmap data area.
  • an array of bytes that defines the bitmap bits. These are the actual image data, represented by consecutive rows, or “scan lines,” of the bitmap. Each scan line consists of consecutive bytes representing the pixels in the scan line, in left-to-right order.

BMP files always contain RGB data. The file can be:

  • 1-bit: 2 colors (monochrome)
  • 4-bit: 16 colors
  • 8-bit: 256 colors.
  • 24-bit: 16777216 colors, mixes 256 tints of Red with 256 tints of Green and Blue

Windows versions 3.0 and later support run-length encoded (RLE) formats for compressing bitmaps that use 4 bits per pixel and 8 bits per pixel.

The default filename extension of a Windows DIB file is .BMP.

Use in a prepress environment

Everything that can be done with BMP, can also be done with TIFF files (or EPS). Because TIFF is an established and more versatile file format for prepress applications, it is better to avoid BMP-files for prepress production. BMP is also limited to RGB-images only while CMYK data are often prefered in prepress. You could say that the only sensible use of .BMP files on a prepress system is for putting a nice background picture on the monitor :-)

Specsheet

Name: BMP
Developer : Microsoft
Release date: 1986?
Type of data: bitmap
Number of colours:
2,16,256, 16777216
Colour spaces: RGB
Compression algorithms: RLE
Ideal use: background of your display ;-)
Extension on PC-platform: .BMP
Macintosh file type: ?
Special features: -
Remarks: -

9 December 2008

2 Responses to “The BMP file format”

  1. David Rubin says:

    Can you convert a standard bitmap file to a black and white bitmap file (not monochrome)?

    Thank you
    david Rubin

Leave a Comment

Polls

I use Adobe InDesign to create

View Results

Loading ... Loading ...

Advertising