Das ist ein kurzes Thema, aber für die Quickies zu lang. Der Aufbau des BMP-Bildformates:
BITMAP-FILEHEADER-STRUCTUR int 2 Byte "BM" long 4 Byte Länge der Datei int 2 Byte Reserviert = 0 int 2 Byte Reserviert = 0 long 4 Byte Beginn der Rasterdaten BITMAP-INFO-HEADER-STRUCTUR long 4 Bytes Länge der Bitmap-Info-Header-Structur (Windows = 40) long 4 Bytes Breite des Bildes long 4 Bytes Höhe des Bildes int 2 Bytes Planes (Windows = 1) int 2 Bytes Anzahl der Farben (1 = 2, 4 = 16, 8 = 256, 24 = 16 Mio) long 4 Bytes Kompression (0 = ohne, 1 = 8 Bit RLE, 2 = 4 Bit RLE) long 4 Bytes Größe des unkomp. Bildes long 4 Bytes horz. Anzahl von Rasterpunkte pro Meter long 4 Bytes vert. Anzahl von Rasterpunkte pro Meter long 4 Bytes Anzahl der erford. Platteneinträge (0 = alle) long 4Bytes Anzahl der wichtigen Farben (0 = alle) anschl.
Farbwerte BLUE,GREEN,RED,RESERVED = 4 Bytes je Farbe (bsp. 256 Farben = 1024 Bytes)anschl. Bildwerte (Rasterwerte) Weiterführende Infos dann bei http://www.wotsit.org/