File Format Example



The following shows header information for a Windows 1.x Format Header. A Byte can hold 8 bits, and a Word can hold 16 bits of information.

	WORD	Type		; File Type ID
	Word	Width		; Width of Bitmap in pixels
	Word 	Height		; Height of Bitmap in Scanlines (rows of data)
	Word	Width		; Width of Bitmap in Bytes
	Byte	Planes		; Number of different palettes
	Byte	BitsPixel	; Number of Bits per Pixel

The number of bits needed for a line in the image is the product of the number of bits per pixel times thenumber of pixels per line times the number of color planes.