Bitmap: Difference between revisions

Content deleted Content added
Tag: Reverted
Undid revision 1064049224 by 51.155.17.251 (talk) Reverting vandalism
Line 10:
 
==Pixel storage==
orIn mummytypical and[[image daddy l;eft ucompression|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 n is the bit depth.