#include <genesis/utils/formats/bmp/writer.hpp>
Bitmap Info Header.
This POD structure holds information about a Bitmap image. In the Bitmap file format, it immediately follows the BitmapFileheader, thus the start of the data is at byte 14.
Furthermore, for Bitmaps that do not use full 24 (or more) bit colors, a color palette is necessary. The BitmapInfo structure is able to hold this additional information, see there for details.
The data in this struct is stored in the following order:
start | size | name | stdvalue | purpose |
---|---|---|---|---|
14 | 4 | biSize | 40 | Size of the BitmapInfoheader structure, in bytes. |
18 | 4 | biWidth | ?? | Width of the image, in pixels. |
22 | 4 | biHeight | ?? | Height of the image, in pixels. |
26 | 2 | biPlanes | 1 | Number of planes of the target device. |
28 | 2 | biBitCount | 8 | Number of bits per pixel. |
30 | 4 | biCompression | 0 | Compression type, usually zero (no compression). |
34 | 4 | biSizeImage | 0 | Size of the image data, in bytes. Without compression, set this member to zero. |
38 | 4 | biXPelsPerMeter | 0 | Horizontal pixels per meter on the designated target device, usually set to zero. |
42 | 4 | biYPelsPerMeter | 0 | Vertical pixels per meter on the designated targer device, usually set to zero. |
46 | 4 | biClrUsed | 0 | Number of colors used in the bitmap, if zero the number is calculated using biBitCount. |
50 | 4 | biClrImportant | 0 | Number of color that are 'important'. If zero, all colors are important. |
Definition at line 126 of file utils/formats/bmp/writer.hpp.
Public Attributes | |
uint16_t | biBitCount = 8 |
uint32_t | biClrImportant = 0 |
uint32_t | biClrUsed = 0 |
uint32_t | biCompression = 0 |
uint32_t | biHeight |
uint16_t | biPlanes = 1 |
uint32_t | biSize = 40 |
uint32_t | biSizeImage = 0 |
uint32_t | biWidth |
uint32_t | biXPelsPerMeter = 0 |
uint32_t | biYPelsPerMeter = 0 |
uint16_t biBitCount = 8 |
Definition at line 132 of file utils/formats/bmp/writer.hpp.
uint32_t biClrImportant = 0 |
Definition at line 138 of file utils/formats/bmp/writer.hpp.
uint32_t biClrUsed = 0 |
Definition at line 137 of file utils/formats/bmp/writer.hpp.
uint32_t biCompression = 0 |
Definition at line 133 of file utils/formats/bmp/writer.hpp.
uint32_t biHeight |
Definition at line 130 of file utils/formats/bmp/writer.hpp.
uint16_t biPlanes = 1 |
Definition at line 131 of file utils/formats/bmp/writer.hpp.
uint32_t biSize = 40 |
Definition at line 128 of file utils/formats/bmp/writer.hpp.
uint32_t biSizeImage = 0 |
Definition at line 134 of file utils/formats/bmp/writer.hpp.
uint32_t biWidth |
Definition at line 129 of file utils/formats/bmp/writer.hpp.
uint32_t biXPelsPerMeter = 0 |
Definition at line 135 of file utils/formats/bmp/writer.hpp.
uint32_t biYPelsPerMeter = 0 |
Definition at line 136 of file utils/formats/bmp/writer.hpp.