#ifndef _BMP_H #define _BMP_H #include #include typedef struct { unsigned short type; /* 16 bits */ unsigned long size; /* 32 bits */ unsigned short reserved1; /* 16 bits */ unsigned short reserved2; /* 16 bits */ unsigned long offset; /* 32 bits --> 14 bytes total */ } BMPHeader; typedef struct { unsigned long size; /* header size */ long width; long height; unsigned short planes; unsigned short bits; unsigned long compression; unsigned long imagesize; long xresolution; long yresolution; unsigned long ncolors; unsigned long importantcolors; } BMPInfo; typedef struct { unsigned char b; unsigned char g; unsigned char r; unsigned char reserved; } RGBTuple; #define BMP_NO_COMPRESS 0 #define BMP_RLE8 1 #define BMP_RLE4 2 #define BMP_RGB 3 Handle LoadBMP( char *filename, LocInfo *locInfo, Word *colorTable ); #endif