|
5 | 5 | ; // suppress #pragma warning |
6 | 6 | #pragma pack(push, 1) |
7 | 7 | typedef struct { |
8 | | - uint16_t type; // Magic identifier 0x4D42 |
9 | | - uint32_t size; // File size in bytes |
10 | | - uint16_t reserved1; // not in use |
11 | | - uint16_t reserved2; // not in use |
12 | | - uint32_t offset; // Offset to image data in bytes from beginning of file |
13 | | - uint32_t dibheadersize; // DIB Header size in bytes |
14 | | - int32_t width; // Width of the image |
15 | | - int32_t height; // Height of the image |
16 | | - uint16_t planes; // Number of color planes |
17 | | - uint16_t bits; // Bits per pixel |
18 | | - uint32_t compression; // Compression type |
19 | | - uint32_t imagesize; // Image size in bytes |
20 | | - int32_t xres; // Pixels per meter |
21 | | - int32_t yres; // Pixels per meter |
22 | | - uint32_t ncolors; // Number of colors |
23 | | - uint32_t importantcolors; // Important colors |
| 8 | + uint16_t type; // Magic identifier 0x4D42 |
| 9 | + uint32_t size; // File size in bytes |
| 10 | + uint16_t reserved1; // not in use |
| 11 | + uint16_t reserved2; // not in use |
| 12 | + uint32_t offset; // Offset to image data in bytes from beginning of file |
| 13 | + uint32_t dibheadersize; // DIB Header size in bytes |
| 14 | + int32_t width; // Width of the image |
| 15 | + int32_t height; // Height of the image |
| 16 | + uint16_t planes; // Number of color planes |
| 17 | + uint16_t bits; // Bits per pixel |
| 18 | + uint32_t compression; // Compression type |
| 19 | + uint32_t imagesize; // Image size in bytes |
| 20 | + int32_t xres; // Pixels per meter |
| 21 | + int32_t yres; // Pixels per meter |
| 22 | + uint32_t ncolors; // Number of colors |
| 23 | + uint32_t importantcolors; // Important colors |
24 | 24 | } BMPHeader; |
25 | 25 |
|
26 | 26 | typedef struct { |
|
0 commit comments