All Topics  
Bitmap

 

   Email Print
   Bookmark   Link






 

Bitmap



 
 
In computer graphics
Computer graphics

Computer graphics are graphics created by computers and, more generally, the representation and manipulation of pictorial data by a computer....
, a bitmap or pixmap is a type of memory
Computer storage

Computer data storage, often called storage or memory, refers to computer components, devices, and recording medium that retain digital data used for computing for some interval of time....
 organization or image file format used to store digital image
Digital image

A digital image is a representation of a two-dimensional using ones and zeros . Depending on whether or not the is fixed, it may be of vector graphics or raster graphics type....
s. The term bitmap comes from the computer programming
Computer programming

Computer programming is the process of writing, testing, debugging/troubleshooting, and maintaining the source code of computer programs. This source code is written in a programming language....
 terminology, meaning just a map of bits, a spatially mapped array of bits
Bit array

A bit array is an array data structure which compactly stores individual bits . It implements a simple set data structure storing a subset of and is effective at exploiting bit-level parallelism in hardware to perform operations quickly....
. Now, along with pixmap, it commonly refers to the similar concept of a spatially mapped array of pixel
Pixel

In digital imaging, a pixel is the smallest item of information in an image. Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots, squares, or rectangles....
s. Raster
Raster graphics

In computer graphics, a raster graphics image or bitmap, is a data structure representing a generally Rectangle grid of pixels, or points of color, viewable via a Computer display, paper, or other display medium....
 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.

Many graphical user interface
Graphical user interface

A graphical user interface is a type of user interface which allows people to human-computer interaction such as computers; hand-held devices such as MP3 Players, Portable Media Players or Gaming devices; household appliances and office equipment....
s use bitmaps in their built-in graphics subsystems; for example, the Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
 and OS/2
OS/2

OS/2 is a computer operating system, initially created by Microsoft and IBM, then later developed by IBM exclusively. The name stands for "Operating System/2," because it was introduced as part of the same generation change release as IBM's "IBM Personal System/2 " line of second-generation personal computers....
 platforms' GDI
Graphics Device Interface

The Graphics Device Interface is a Microsoft Windows application programming interface and core operating system component that is responsible for representing graphical objects and transmitting them to output devices such as computer display and computer printer....
 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).






Discussion
Ask a question about 'Bitmap'
Start a new discussion about 'Bitmap'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In computer graphics
Computer graphics

Computer graphics are graphics created by computers and, more generally, the representation and manipulation of pictorial data by a computer....
, a bitmap or pixmap is a type of memory
Computer storage

Computer data storage, often called storage or memory, refers to computer components, devices, and recording medium that retain digital data used for computing for some interval of time....
 organization or image file format used to store digital image
Digital image

A digital image is a representation of a two-dimensional using ones and zeros . Depending on whether or not the is fixed, it may be of vector graphics or raster graphics type....
s. The term bitmap comes from the computer programming
Computer programming

Computer programming is the process of writing, testing, debugging/troubleshooting, and maintaining the source code of computer programs. This source code is written in a programming language....
 terminology, meaning just a map of bits, a spatially mapped array of bits
Bit array

A bit array is an array data structure which compactly stores individual bits . It implements a simple set data structure storing a subset of and is effective at exploiting bit-level parallelism in hardware to perform operations quickly....
. Now, along with pixmap, it commonly refers to the similar concept of a spatially mapped array of pixel
Pixel

In digital imaging, a pixel is the smallest item of information in an image. Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots, squares, or rectangles....
s. Raster
Raster graphics

In computer graphics, a raster graphics image or bitmap, is a data structure representing a generally Rectangle grid of pixels, or points of color, viewable via a Computer display, paper, or other display medium....
 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.

Many graphical user interface
Graphical user interface

A graphical user interface is a type of user interface which allows people to human-computer interaction such as computers; hand-held devices such as MP3 Players, Portable Media Players or Gaming devices; household appliances and office equipment....
s use bitmaps in their built-in graphics subsystems; for example, the Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
 and OS/2
OS/2

OS/2 is a computer operating system, initially created by Microsoft and IBM, then later developed by IBM exclusively. The name stands for "Operating System/2," because it was introduced as part of the same generation change release as IBM's "IBM Personal System/2 " line of second-generation personal computers....
 platforms' GDI
Graphics Device Interface

The Graphics Device Interface is a Microsoft Windows application programming interface and core operating system component that is responsible for representing graphical objects and transmitting them to output devices such as computer display and computer printer....
 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)
ILBM

ILBM is a subtype of the Interchange File Format used for storing picture data. ILBM stands for InterLeaved BitMap which refers to the way the pictures are stored....
, Portable Bitmap (PBM)
Portable pixmap

The portable pixmap file format , the portable graymap file format and the portable bitmap file format specify rules for exchanging graphics files....
, X Bitmap (XBM), and Wireless Application Protocol Bitmap (WBMP)
Wireless Application Protocol Bitmap Format

Wireless Application Protocol Bitmap Format is a monochrome graphics file format optimized for mobile computing devices.WBMP images are monochrome so that the image size is kept to a minimum....
. Similarly, most other image file formats, such as JPEG
JPEG

In computing, JPEG is a commonly used method of for photographic images. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality....
, TIFF, PNG, and GIF
GIF

The Graphics Interchange Format is a Raster graphics that was introduced by CompuServe in 1987 and has since come into widespread usage on the World Wide Web due to its wide support and portability....
, also store bitmap images (as opposed to vector graphics
Vector graphics

Vector graphics is the use of geometrical Primitive s such as point s, line , curves, and shapes or polygon, which are all based upon mathematical equations, to represent s in computer graphics....
), but they are not usually referred to as bitmaps, since they use compressed
Image compression

Image compression is the application of Data compression on digital images. In effect, the objective is to reduce redundancy of the image data in order to be able to store or data transmission data in an efficient form....
 formats internally.

Pixel storage


In typical uncompressed
Image compression

Image compression is the application of Data compression on digital images. In effect, the objective is to reduce redundancy of the image data in order to be able to store or data transmission data in an efficient form....
 bitmaps, image pixel
Pixel

In digital imaging, a pixel is the smallest item of information in an image. Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots, squares, or rectangles....
s are generally stored with a color depth
Color depth

Color depth or bit depth, is a computer graphics term describing the number of bits used to represent the color of a single pixel in a Raster graphicsped image or video frame buffer....
 of 1, 4, 8, 16, 24, 32, 48, or 64 bits per pixel. Pixels of 8 bits and fewer can represent either grayscale
Grayscale

In photography and computing, a grayscale or greyscale digital image is an image in which the value of each pixel is a single sample , that is, it carries only intensity information....
 or indexed color
Indexed color

In computing, indexed color is a technique to manage digital images' colors in a limited fashion, in order to save computer's computer data storage and Hard disk drive, while speeding up display refresh and telecom transfers....
. An alpha channel (for transparency
Transparency (graphic)

Transparency is possible in a number of graphics file formats. The term transparency is used in various ways by different people, but at its simplest there is "full transparency" i.e....
) 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 byte
Byte

A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
s, can be calculated as:

, 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
Word

A word is a unit of language that represents a concept which can be expressively communication with Meaning . A word consists of one or more morphemes which are linked more or less tightly together, and has a phonetic value....
, 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:

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
Color management

In digital imaging systems, color management is the controlled conversion between the color representations of various devices, such as s, digital cameras, monitors, TV screens, film printers, computer printers, offset presses, and corresponding media....
.

Other bitmap file formats


The X Window System
X Window System

The X Window System is a computing software system and network protocol that provides a graphical user interface for networked computers. It implements the X Window System protocols and architecture and provides windowing system on raster graphics Visual display units and manages Keyboard and pointing device control functions....
 uses a similar XBM format for black-and-white
Black-and-white

Black-and-white is a number of monochrome forms in visual arts. Most forms of visual technology start out in black and white, then slowly evolve into color as technology progresses....
 images, and XPM (pixelmap) for color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
 images. Numerous other uncompressed bitmap file formats are in use, though most not widely. Much more common are the standardized compressed bitmap files such as GIF
GIF

The Graphics Interchange Format is a Raster graphics that was introduced by CompuServe in 1987 and has since come into widespread usage on the World Wide Web due to its wide support and portability....
, PNG, TIFF, and JPEG
JPEG

In computing, JPEG is a commonly used method of for photographic images. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality....
. TIFF and JPEG have various options. JPEG is usually lossy compression. TIFF is usually either uncompressed, or losslessly Lempel-Ziv-Welch compressed like GIF
GIF

The Graphics Interchange Format is a Raster graphics that was introduced by CompuServe in 1987 and has since come into widespread usage on the World Wide Web due to its wide support and portability....
. PNG uses deflate
DEFLATE

Deflate is a lossless data compression algorithm that uses a combination of the LZ77 and LZ78 algorithm and Huffman coding. It was originally defined by Phil Katz for version 2 of his PKZIP archiving tool, and was later specified in RFC 1951....
 lossless compression, another Lempel-Ziv 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 format
RAW image format

A raw image file contains minimally processed data from the image sensor of either a digital camera, or motion picture film scanner. Raw files are so named because they are not yet processed and therefore are not ready to be used with a bitmap graphics editor or Printing....
s, which store raw unprocessed sensor data in a structured container such as TIFF format along with extensive image metadata
Metadata

Metadata is "data about other data", of any sort in any media. An item of metadata may describe an individual datum, or content item, or a collection of data including multiple content items and hierarchical levels, for example a database schema....
.

See also

  • Raster graphics
    Raster graphics

    In computer graphics, a raster graphics image or bitmap, is a data structure representing a generally Rectangle grid of pixels, or points of color, viewable via a Computer display, paper, or other display medium....
  • Raster scan
    Raster scan

    A Raster scan, or raster scanning, is the pattern of image detection and reconstruction in television, and is the pattern of image storage and transmission used in most computer bitmap image systems....