=============== BMP file format =============== Offset Sz Mean 0h 2 Value = "BM" 2h 4 File size; bytes 6h 4 Value = 0 Ah 4 Offset to picture Eh 4 Value = 28h (Size of image info) 12h 4 Image width; pixels 16h 4 Image height; pixels 1Ah 2 Value = 1 (No. of plane) 1Ch 2 Bit per pixel 1Eh 4 Compression type. Normally = 0 22h 4 Size of compressed image; bytes 26h 4 H resolution; pixels/meter 2Ah 4 V resolution; pixels/meter 2Eh 4 Number of color used. (0 for full color set) 32h 4 Number of important color. 36h Color palette For Win95 rotated palette BMP ----------------------------- Must be 320*400 pixels 256 colors. 2h 4 Value = 1F836h , 54+(4*256)+(320*400) Ah 4 Value = 436h , 54+(4*256) 12h 4 Value = 140h , 320 16h 4 Value = 190h , 400 1Ch 2 Value = 8 1Eh 4 Value = 0 22h 4 Value = 1F400h , 320*400 26h 4 Value = CEh 2Ah 4 Value = C4h 2Eh 4 Value = 0 32h 4 ***First color*** Palette will rotate color from "First color" to color index 255th.