Bitmaps
================
A bitmap is a type of image file that stores an image as a collection of small, square pixels, each represented by a color value. It is one of the most common file formats used to store images.
History
The first bitmap image was created in 1975 by Jim Clark, an American computer scientist and entrepreneur, using a software called “PalmDraw”. The early bitmaps were stored on floppy disks and had a Resolution of 24x24 pixels. In the 1980s, IBM developed the BMP (Bitmap) format as a standard for storing image files.
Structure
A bitmap image consists of a series of pixels, each represented by three color values: red, green, and blue (RGB). The x-coordinate of each pixel represents the horizontal position, while the y-coordinate represents the vertical position. Each pixel has an alpha channel that stores the transparency value, ranging from 0 (fully transparent) to 255 (fully opaque).
The structure of a bitmap image can be represented as follows:
| Channel | Bit Depth | Pixel Data |
|---|---|---|
| Red | 8 bits | r |
| Green | 8 bits | g |
| Blue | 8 bits | b |
File Format
The BMP file format is widely supported and has undergone several revisions over the years. The current standard BMP (Bitmap) file format version 6.0 was published in 1995.
BMP File Structure
A BMP file consists of a header section followed by a pixel data section.
- Header Section: This section contains metadata about the image, including:
- Image width and height
- Number of bits per pixel (8 or 24)
- Color Types (RGB or RGBA)
- Compression method (None, ICMR, or BC1)
- File size in bytes
- Pixel Data Section: This section contains the actual image data.
Pixel Data Format
The pixel data format consists of a series of pixels, each represented by three color values. The x-coordinate and y-coordinate of each pixel are specified using two integers, while the alpha channel stores the transparency value.
File Extension
The file extension for a bitmap image is .bmp.
BMP File Extensions
.bmp: The standard format for bitmap images..dib: A format developed by Microsoft, used to store icon images..jpgor.jpeg: A format developed by Adobe, used to store compressed images (not typically used for bitmaps)..png: A format developed by Adobe, used to store transparencies and other image effects.
Advantages
Bitmapped images have several advantages over other formats:
- High Resolution: Bitmapped images can be scaled up or down without losing quality.
- Flexibility: Images can be edited using various software tools.
- Portable: Bitmapped images are easily shared across different platforms and devices.
However, bitmap images also have some disadvantages:
- Large File Size: Bitmapped images require more storage space compared to other formats.
- Compression: Bitmapped images are often compressed using lossy algorithms, which can result in a reduction in image quality.
Conclusion
In conclusion, bitmapped images are a fundamental format for storing digital images. Their advantages in terms of high Resolution and flexibility make them widely used in various applications, including Graphics, Logos, and Icons. However, their limitations in terms of file size and compression require careful consideration when choosing an image format.