In computer graphics, a bitmap or pixmap is a type of memory organization or image file format used to store digital images. The term "bitmap" comes from the computer programming terminology, meaning just a "map of bits", a spatially mapped array of bits. Now, along with "pixmap", it commonly refers to the similar concept of a spatially mapped array of pixels. Raster images in general may be referred to as bitmaps or pixmaps, whether synthetic or photographic, in files or in memory.

In some contexts, the term bitmap implies one bit per pixel, while pixmap is used for images with multiple bits per pixel. [cite book | quote = The term bitmap, strictly speaking, applies only to 1-bit-per-pixel bilevel systems; for multiple-bit-per-pixel systems, we use the more general term pixmap (short for pixel map). | title = Computer Graphics: Principles and Practice | author = James D. Foley | pages = p.13 | publisher = Addison-Wesley Professional | year = 1995 | isbn = 0201848406 | url = ] [cite book | title = Comprehensive Computer Graphics: Including C++ | author = V.K. Pachghare | publisher = Laxmi Publications | pages = p.93 | year = 2005 | isbn = 8170081858 | url = ]

Many graphical user interfaces use bitmaps in their built-in graphics subsystems; [cite book | title = Cross-Platform GUI Programming with Wxwidgets | author = Julian Smart, Stefan Csomor, and Kevin Hock | url = | publisher = Prentice Hall | year = 2006 | isbn = 0131473816 ] for example, the Microsoft Windows and OS/2 platforms' GDI subsystem, where the specific format used is the "Windows and OS/2 bitmap file format", usually named with the file extension of .BMP (or .DIB for "device-independent bitmap"). Besides BMP, other file formats that store literal bitmaps include InterLeaved Bitmap (ILBM), Portable Bitmap (PBM), X Bitmap (XBM), and Wireless Application Protocol Bitmap (WBMP) . Similarly, most other image file formats, such as JPEG, TIFF, PNG, and GIF, also store bitmap images (as opposed to vector graphics), but they are not usually referred to as "bitmaps", since they use compressed formats internally.

Pixel storage

In typical uncompressed bitmaps, image pixels are generally stored with a color depth of 1, 4, 8, 16, 24, 32, 48, or 64 bits per pixel. Pixels of 8 bits and fewer can represent either grayscale or indexed color. An alpha channel (for transparency) may be stored in a separate bitmap, where it is similar to a greyscale bitmap, or in a fourth channel that, for example, converts 24-bit images to 32 bits per pixel.

The bits representing the bitmap pixels may be packed or unpacked (spaced out to byte or word boundaries), depending on the format or device requirements. Depending on the color depth, a pixel in the picture will occupy at least n/8 bytes, where n is the bit depth.

For an uncompressed, packed within rows, bitmap, such as is stored in Microsoft DIB or BMP file format, or in uncompressed TIFF format, the approximate size for a n-bit-per-pixel (2n colors) bitmap, in bytes, can be calculated as:

:size approx width cdot height cdot n/8, where height and width are given in pixels.

In the formula above, header size and color palette size, if any, are not included. Due to effects of row padding to align each row start to a storage unit boundary such as a word, additional bytes may be needed.

Device-independent bitmaps and BMP file format

Microsoft has defined a particular representation of color bitmaps of different color depths, as an aid to exchanging bitmaps between devices and applications with a variety of internal representations. They called these device-independent bitmaps or DIBs, and the file format for them is called DIB file format or BMP file format. According to Microsoft support:cite web | url = | title = DIBs and Their Uses | work = Microsoft Help and Support | date = 2005-02-11]

A device-independent bitmap (DIB) is a format used to define device-independent bitmaps in various color resolutions. The main purpose of DIBs is to allow bitmaps to be moved from one device to another (hence, the device-independent part of the name). A DIB is an external format, in contrast to a device-dependent bitmap, which appears in the system as a bitmap object (created by an application...). A DIB is normally transported in metafiles (usually using the StretchDIBits() function), BMP files, and the Clipboard (CF_DIB data format).

Here, "device independent" refers to the format, or storage arrangement, and should not be confused with device-independent color.

Other bitmap file formats

The X Window System uses a similar XBM format for black-and-white images, and XPM ("pixelmap") for color images. Numerous other uncompressed bitmap file formats are in use, though most not widely. [cite web | url =
title = List of bitmap file types | work = Search
] Much more common are the standardized compressed bitmap files such as GIF, PNG, TIFF, and variant.

There are also a variety of "raw" image files, which store raw bitmaps with no other information; such raw files are just bitmaps in files, often with no header or size information, and should not be confused with photographic raw image formats, which store raw unprocessed sensor data in a structured container such as TIFF format along with extensive image metadata.

See also

* Raster graphics
* Raster scan


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • bitmap — [bit′map΄] n. Comput. a representation of a graphic image, as a letter or number, as a sequence of bits that generates a corresponding pattern of pixels on a video screen * * * bit map or bit·map (bĭtʹmăp ) n. Computer Science A set of bits that… …   Universalium

  • bitmap — 1973, in computer jargon, from BIT (Cf. bit) (n.2) + MAP (Cf. map). Literally, a map of bits …   Etymology dictionary

  • bitmap — (izg. bȋtmȅp) m DEFINICIJA inform. bitna slika, slika pohranjena kao skupina točaka, odn. piksela, usp. bit ETIMOLOGIJA engl …   Hrvatski jezični portal

  • bitmap — ► NOUN ▪ a representation in which each item corresponds to one or more bits of information, especially the information used to control the display of a computer screen …   English terms dictionary

  • bitmap — [bit′map΄] n. Comput. a representation of a graphic image, as a letter or number, as a sequence of bits that generates a corresponding pattern of pixels on a video screen …   English World dictionary

  • Bitmap — Image matricielle Exemple d image matricielle Une image matricielle (ou image en mode point, ou en anglais une « bitmap » ou « raster ») est une image numérique dans un format de données qui se compose d un tableau de pixels… …   Wikipédia en Français

  • BitMaP — Windows bitmap Pour les articles homonymes, voir BMP. Windows bitmap Extension de fichier .bmp Type MIME image/x ms bmp (non officiel) Type de format …   Wikipédia en Français

  • Bitmap — В Викисловаре есть статья «bitmap» Bitmap (англ. bit бит + map «карта») имеет значения: Битовая карта (битовый массив, битовый вектор) структура данных. Бинарное изображение (двухуровневое, двоичное) разновидность цифровых растровых… …   Википедия

  • Bitmap — Bịt|map 〈[ mæp] f. 10; EDV〉 (ein von der amerikan. Firma Microsoft entwickeltes) Datenformat, mit dessen Hilfe eine aus Pixeln bestehende Grafik direkt im Arbeitsspeicher des Computers od. der Grafikkarte abgebildet wird [<engl. bit „kleinste …   Universal-Lexikon

  • bitmap — [[t]bɪ̱tmæp[/t]] bitmaps, bitmapping, bitmapped VERB A bitmap is a type of graphics file on a computer. [COMPUTING] [V ed] Bitmapped maps require huge storage space. ...bitmap graphics for representing complex images such as photographs. Bitmap… …   English dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”