Graphics & Media Lab. >> Курсы >> Курс Ю.М.Баяковского 2001
 
Описание формата bmp - файла

FILE HEADER

BM signature (2 bytes) =BM
File size (4 bytes)
Reserved (2 bytes)
Reserved (2 bytes)
Location of bitmap data (4 bytes)

INFORMATION HEADER

Size of information header (4 bytes) =40
Image width (4 bytes)
Image height (4 bytes)
Number of color planes (2 bytes) =1
Number of bits per pixel (2 bytes)
Compression method used (4 bytes)
Number of bytes of bitmap data (4 bytes)
Horizontal screen resolution (4 bytes)
Vertical screen resolution (4 bytes)
Number of colors used in the image (4 bytes) =0
Number of important colors (4 bytes)

COLOR TABLE

The color table holds 256 entries of 4 bytes each.

BITMAP DATA

The ordering of the bytes reflects the left-to-right order of pixels, starting with the bottom line in the image.

Graphics & Media Lab. >> Библиотека | Курсы | Графикон
 
Hosted by Graphics & Media Lab
http://graphics.cs.msu.su
lab_logo
Дизайн: Алексей Игнатенко
Поддержка: Ольга Соловьева