//
// bmp.h
//
#include <windows.h>
typedef unsigned short uint16;
typedef unsigned int   uint32;

typedef struct bmp_file_header {
	uint16		filetype; // BM
	uint32		filesize; // in 32-bit integers
	uint32		reserved; // must be 0
	uint32		offset;	  // byte offset to start of data 
	uint32		bytesInHeader;	// 40
	uint32		width;			// in pixels
	uint32		height;			// in pixels
	uint16		planes;			// 1
	uint16		bitsPerPixel;	// 1,4,8, or 24
	uint32		compression;	// 0 = none, 1 = 8bit RLE, 2 = 4 bit RLE
	uint32		size;			// of image, in bytes
	uint32		horizRes;		// in pixels/m
	uint32		vertRes;		//      "
	uint32		indicesUsed;	// # color indices used by the bitmap
	uint32		indicesImportant; // # important indices (0=all)
} BMPFileHeader;

