Bitmap: Difference between revisions

Content deleted Content added
Tags: Reverted Visual edit
m Reverted edits by 106.51.56.25 (talk) to last version by 100.36.163.100
 
(5 intermediate revisions by 4 users not shown)
Line 4:
{{Use American English|date=September 2022}}
 
In [[computing]], a '''bitmap''' (also called '''raster''') graphic is an image formed from rows of different colored [[pixel]]s.<ref>{{cite web |dateurl=September 22, 2023 https://kb.iu.edu/d/afmr|title=ARCHIVED: What are bitmap and vector graphics, and how are they different |urlpublisher=https://kb.iu.edu/d/afmrUniversity Information Technology Servivces|language=en-US|url-status=live |archive-urldate=https://alightmotionproapks.comSeptember 22, 2023|archiveaccess-date=April 21, 2024 |accessarchive-date=April 21, 2024 |publisher=University Information Technology Servivces |language=enarchive-USurl=https://archive.today/20240421071909/https://kb.iu.edu/d/afmr}}</ref> A [[GIF]] is an example of a graphics image file that uses a bitmap.<ref>{{cite encyclopedia|url=https://www.britannica.com/technology/bitmap|title=bitmap|encyclopedia=[[Encyclopædia Britannica]]|author=Gregersen, Erik|language=en-GB|url-status=live|date=January 26, 2022|access-date=April 21, 2024|archive-date=April 21, 2024 |archive-url=https://archive.today/20240421072042/https://www.britannica.com/technology/bitmap}}</ref>
 
As a noun, the term "bitmap" is very often used to refer to a particular bitmapping application: the '''pix-map''', which refers to a map of [[pixel]]s, 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 term ''bitmap'' implies one bit per pixel, whereas ''pixmap'' is used for images with multiple bits per pixel.<ref>{{cite book |author=James D. Foley |url=https://books.google.com/books?id=A4k29b0BdVMC&q=bitmap+pix+map+%22short+for+pixel+map%22&pg=PA13 |title=Computer Graphics: Principles and Practice |publisher=Addison-Wesley Professional |year=1995 |isbn=0-201-84840-6 |pages=13 |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 pix-map (short for pixel map).}}</ref><ref>{{cite book |title= Comprehensive Computer Graphics: Including C++ |author= V.K. Pachghare |publisher= Laxmi Publications |pages= 93 |year= 2005 |isbn= 81-7008-185-8 |url= https://books.google.com/books?id=xIKK9RcSTR4C&q=bitmap+pixmap+one-bit+date:2004-2007&pg=PA93}}</ref>
Line 15:
In typical [[image compression|uncompressed]] bitmaps, image [[pixel]]s are generally stored with a variable number of bits per pixel which identify its color (the [[color depth]]). Pixels of 8 bits and fewer can represent either [[grayscale]] or [[indexed color]]. An [[alpha channel]] (for [[transparency (graphic)|transparency]]) 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 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 {{Var|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, a lower bound on storage size for a ''n''-bit-per-pixel (2<sup>n</sup> colors) bitmap, in [[byte]]s, can be calculated as:
:<math>\text{size} = \text{width} \cdot \text{height} \cdot n/8</math>
where width and height are given in pixels.
Line 26:
{{Main|BMP file format}}
 
[[Microsoft]] has defined a particular representation of color bitmaps of different [[color depth]]s, 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 or [[BMP file format]]. According to Microsoft support:<ref name=DIBhelp>{{cite web |url= http://support.microsoft.com/kb/q81498/ |title= DIBs and Their Uses |work= Microsoft Help and Support |date= 2005-02-11}}</ref>
 
<blockquote>