GrafX2 2.9.3227
The ultimate 256-color painting program

BMP file header. More...

+ Collaboration diagram for T_BMP_Header:

Data Fields

byte Signature [2]
 ='BM' = 0x4D42 More...
 
dword Size_1
 file size More...
 
word Reserved_1
 0 More...
 
word Reserved_2
 0 More...
 
dword Offset
 Offset of bitmap data start. More...
 
dword Size_2
 BITMAPINFOHEADER size. More...
 
dword Width
 Image Width. More...
 
int32_t Height
 Image Height. signed: negative means a top-down bitmap (rare) More...
 
word Planes
 Should be 1. More...
 
word Nb_bits
 Bits per pixel : 1,2,4,8,16,24 or 32. More...
 
dword Compression
 Known values : 0=BI_RGB, 1=BI_RLE8, 2=BI_RLE4, 3=BI_BITFIELDS, 4=BI_JPEG, 5=BI_PNG. More...
 
dword Size_3
 (optional) byte size of bitmap data More...
 
dword XPM
 (optional) horizontal pixels-per-meter More...
 
dword YPM
 (optional) vertical pixels-per-meter More...
 
dword Nb_Clr
 number of color indexes used in the table. 0 for default (1 << Nb_bits) More...
 
dword Clr_Imprt
 number of color indexes that are required for displaying the bitmap. 0 : all colors are required. More...
 

Detailed Description

BMP file header.

Field Documentation

◆ Signature

byte T_BMP_Header::Signature[2]

='BM' = 0x4D42

Referenced by Load_BMP(), Save_BMP(), and Test_BMP().

◆ Size_1

dword T_BMP_Header::Size_1

file size

Referenced by Load_BMP(), Save_BMP(), and Test_BMP().

◆ Reserved_1

word T_BMP_Header::Reserved_1

0

Referenced by Load_BMP(), Save_BMP(), and Test_BMP().

◆ Reserved_2

word T_BMP_Header::Reserved_2

0

Referenced by Load_BMP(), Save_BMP(), and Test_BMP().

◆ Offset

dword T_BMP_Header::Offset

Offset of bitmap data start.

Referenced by Load_BMP(), Save_BMP(), and Test_BMP().

◆ Size_2

dword T_BMP_Header::Size_2

BITMAPINFOHEADER size.

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), Save_ICO(), and Test_BMP().

◆ Width

dword T_BMP_Header::Width

Image Width.

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ Height

int32_t T_BMP_Header::Height

Image Height. signed: negative means a top-down bitmap (rare)

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ Planes

word T_BMP_Header::Planes

Should be 1.

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ Nb_bits

word T_BMP_Header::Nb_bits

Bits per pixel : 1,2,4,8,16,24 or 32.

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ Compression

dword T_BMP_Header::Compression

Known values : 0=BI_RGB, 1=BI_RLE8, 2=BI_RLE4, 3=BI_BITFIELDS, 4=BI_JPEG, 5=BI_PNG.

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ Size_3

dword T_BMP_Header::Size_3

(optional) byte size of bitmap data

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ XPM

dword T_BMP_Header::XPM

(optional) horizontal pixels-per-meter

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ YPM

dword T_BMP_Header::YPM

(optional) vertical pixels-per-meter

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ Nb_Clr

dword T_BMP_Header::Nb_Clr

number of color indexes used in the table. 0 for default (1 << Nb_bits)

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().

◆ Clr_Imprt

dword T_BMP_Header::Clr_Imprt

number of color indexes that are required for displaying the bitmap. 0 : all colors are required.

Referenced by Load_BMP(), Load_ICO(), Save_BMP(), and Save_ICO().


The documentation for this struct was generated from the following file: