Blob


2 #define BMP_RGB 0
3 #define BMP_RLE8 1
4 #define BMP_RLE4 2
5 #define BMP_BITFIELDS 3
7 typedef struct {
8 uchar red;
9 uchar green;
10 uchar blue;
11 uchar alpha;
12 } Rgb;
14 typedef struct {
15 short type;
16 long size;
17 short reserved1;
18 short reserved2;
19 long offbits;
20 } Filehdr;
22 typedef struct {
23 long size; /* Size of the Bitmap-file */
24 long lReserved; /* Reserved */
25 long dataoff; /* Picture data location */
26 long hsize; /* Header-Size */
27 long width; /* Picture width (pixels) */
28 long height; /* Picture height (pixels) */
29 short planes; /* Planes (must be 1) */
30 short bpp; /* Bits per pixel (1, 4, 8 or 24) */
31 long compression; /* Compression mode */
32 long imagesize; /* Image size (bytes) */
33 long hres; /* Horizontal Resolution (pels/meter) */
34 long vres; /* Vertical Resolution (pels/meter) */
35 long colours; /* Used Colours (Col-Table index) */
36 long impcolours; /* Important colours (Col-Table index) */
37 } Infohdr;