Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Bitmap

From Wikipedia, the free encyclopedia
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Bitmap" – news ·newspapers ·books ·scholar ·JSTOR
(April 2024) (Learn how and when to remove this message)
For other uses, seeBitmap (disambiguation).
Computing term

Incomputing, abitmap (also calledraster) graphic is an image formed from rows of different coloredpixels.[1] AGIF is an example of a graphics image file that uses a bitmap.[2]

As a noun, the term "bitmap" is very often used to refer to a particular bitmapping application: thepix-map, which refers to a map ofpixels, where each pixel may store more than two colors, thus using more than one bit per pixel. In such a case, the domain in question is the array of pixels which constitute a digital graphic output device (a screen or monitor). In some contexts, the termbitmap implies one bit per pixel, whereaspixmap is used for images with multiple bits per pixel.[3][4]

A bitmap is a type ofmemory organization orimage file format used to storedigital images. The termbitmap comes from thecomputer programming terminology, meaning just amap of bits, a spatially mappedarray of bits. Now, along withpixmap, 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 memory.

Manygraphical user interfaces use bitmaps in their built-in graphics subsystems.[5] For example, theMicrosoft Windows andOS/2 platforms'GDI subsystem uses theWindows and OS/2 bitmap file format, usually named with thefile extension.BMP (or.DIB fordevice-independent bitmap). BesidesBMP, other file formats that store literal bitmaps includeInterLeaved Bitmap (ILBM),Portable Bitmap (PBM),X Bitmap (XBM), andWireless Application Protocol Bitmap (WBMP). Similarly, most other image file formats, such asJPEG,TIFF,PNG, and GIF, also store bitmap images (as opposed tovector graphics), but they are not usually referred to asbitmaps, since they usecompressed formats internally.

Pixel storage

[edit]

In typicaluncompressed bitmaps, imagepixels are generally stored with a variable number of bits per pixel which identify its color (thecolor depth). Pixels of 8 bits and fewer can represent eithergrayscale orindexed color. Analpha channel (fortransparency) may be stored in a separate bitmap, where it is similar to a grayscale 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 bepacked 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 leastn/8 bytes, wheren is the bit depth.

For an uncompressed, packed-within-rows bitmap, such as is stored in Microsoft DIB orBMP file format, or in uncompressedTIFF format, a lower bound on storage size for an-bit-per-pixel (2n colors) bitmap, inbytes, can be calculated as:

size=widthheightn/8{\displaystyle {\text{size}}={\text{width}}\cdot {\text{height}}\cdot n/8}

where width and height are given in pixels.

In the formula above, header size andcolor 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 aword, additional bytes may be needed.

Device-independent bitmaps and BMP file format

[edit]
Main article:BMP file format

Microsoft has defined a particular representation of color bitmaps of differentcolor depths, as an aid to exchanging bitmaps between devices and applications with a variety of internal representations. They called these device-independent bitmaps "DIBs", and the file format for them is called DIB file format orBMP file format. According to Microsoft support:[6]

A device-independent bitmap (DIB) is a format used to define device-independent bitmaps in variouscolor 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 withdevice-independent color.

Other bitmap file formats

[edit]
Main article:Image file formats

TheX Window System uses a similarXBM format forblack-and-white images, andXPM (pixelmap) for color images. Numerous other uncompressed bitmap file formats are in use, though most not widely.[7] For most purposes, standardized compressed bitmap files such asGIF,PNG,TIFF, andJPEG are used.Lossless compression in particular provides the same information as a bitmap in a smaller file size.[8] TIFF and JPEG have various options. JPEG is usuallylossy compression. TIFF is usually either uncompressed, or losslessLempel–Ziv–Welch compressed likeGIF. PNG usesdeflate lossless compression, anotherLempel-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 (they are distinct from photographicraw image formats, which store raw unprocessed sensor data in a structured container such asTIFF format along with extensive imagemetadata).

See also

[edit]

References

[edit]
  1. ^"ARCHIVED: What are bitmap and vector graphics, and how are they different". University Information Technology Servivces. September 22, 2023.Archived from the original on April 21, 2024. RetrievedApril 21, 2024.
  2. ^Gregersen, Erik (January 26, 2022)."bitmap".Encyclopædia Britannica.Archived from the original on April 21, 2024. RetrievedApril 21, 2024.
  3. ^James D. Foley (1995).Computer Graphics: Principles and Practice. Addison-Wesley Professional. p. 13.ISBN 0-201-84840-6.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 pix-map (short for pixel map).
  4. ^V.K. Pachghare (2005).Comprehensive Computer Graphics: Including C++. Laxmi Publications. p. 93.ISBN 81-7008-185-8.
  5. ^Julian Smart; Stefan Csomor & Kevin Hock (2006).Cross-Platform GUI Programming with Wxwidgets. Prentice Hall.ISBN 0-13-147381-6.
  6. ^"DIBs and Their Uses".Microsoft Help and Support. 2005-02-11.
  7. ^"List of bitmap file types".File-Extensions.org.
  8. ^J. Thomas; A. Jones (2006).Communicating Science Effectively: a practical handbook for integrating visual elements. IWA Publishing.ISBN 1-84339-125-2.
Video
compression
ISO,IEC,
MPEG
ITU-T,VCEG
SMPTE
TrueMotion and AOMedia
Chinese Standard
  • AVS1 P2/AVS+(GB/T 20090.2/16)
  • AVS2 P2(GB/T 33475.2,GY/T 299.1)
    • HDR Vivid(GY/T 358)
  • AVS3 P2(GY/T 368)
Others
Audio
compression
ISO,IEC,
MPEG
ITU-T
IETF
3GPP
ETSI
Bluetooth SIG
Chinese Standard
Others
Image
compression
IEC,ISO,IETF,
W3C,ITU-T,JPEG
Others
Containers
ISO,IEC
ITU-T
IETF
SMPTE
Others
Collaborations
Methods
Lists
SeeCompression methods for techniques andCompression software for codecs
Authority control databasesEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Bitmap&oldid=1295022531"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp