Bitmap header file basically contains following
- Signature-" BM " (ignore inverted commas) for windows - it acquires 2 bytes of size
- File size- size of BMP file in bytes - acquires 4 bytes
- Reserved 1- reserved; actual value depends on the application that creates the image - acquires 2 bytes
- Reserved 2- reserved; actual value depends on the application that creates the image - acquires 2 bytes
- Offset- here the starting of address of pixels exist - acquires 4 bytes
- Size of DIB (device-independent bitmap) header - the size of this header (40 bytes) - acquires 4 bytes
- Width- the bitmap width in pixels (signed integer) - acquires 4 bytes
- Height- the bitmap width in pixels (signed integer) - acquires 4 bytes
- Color Planes- the number of color planes being used. Must be set to 1 - acquires 2 bytes
- Bits Per Pixel- the number of bits per pixel, which is the color depth of the image. Typical values are 1, 4, 8, 16, 24 and 32 - acquires 2 bytes
- Compression method- the compression method being used. See the next table for a list of possible values - Raw data image size- the image size. This is the size of the raw bitmap data (see below), and should not be confused with the file size - acquires 4 bytes
- Horizontal Resolution- the horizontal resolution of the image. (pixel per meter, signed integer) - acquires 4 bytes
- Vertical Resolution- the vertical resolution of the image. (pixel per meter, signed integer) - acquires 4 bytes
- Color Palette- the number of colors in the color palette, or 0 to default to 2n - acquires 4 bytes
- Important Colors- the number of important colors used, or 0 when every color is important; generally ignored - acquires 4 bytes
No comments:
Post a Comment