2.3.1.2 BITMAPINFOHEADER

Referenced by: TBCBitmap

Bitmap header. Contains information about a bitmap.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

bData

biWidth

biHeight

biPlanes

biBitCount

biCompression

biSizeImage

biXPelsPerMeter

...

biYPelsPerMeter

...

biClrUsed

...

biClrImportant

...

bData (4 bytes): Unsigned integer. MUST be 0x00000028.

biWidth (2 bytes): Signed integer that specifies the width of the bitmap in pixels. MUST be positive and less than or equal to 0x0080.

biHeight (2 bytes): Signed integer that specifies the height of the bitmap in pixels. MUST be positive and less than or equal to 0x0080.

biPlanes (1 byte): Unsigned integer that MUST be 0x01.

biBitCount (1 byte): Unsigned integer that specifies the number of bits per pixel. MUST be equal to one of the values in the following table.

Value of biBitCount

0x01

0x04

0x08

0x10

0x18

0x20

biCompression (2 bytes): Unsigned integer that specifies the bitmap compression format. A value of 0x0000 means that the bitmap is uncompressed. The value MUST be 0x0000.

biSizeImage (2 bytes): Unsigned integer that specifies the size, in bytes, of the image. The value SHOULD specify the size of the bitmapData array of the TBCBitmap structure (section 2.3.1.1) that contains this structure and is given by the following formula. For ​uncompressed bitmaps, this value is equal to 0x0000 and does not specify the size of the image.

 biSizeImage = ((biHeader.biWidth * biHeader.biBitCount + 31) & ~31) / 8 * biHeader.biHeight

biXPelsPerMeter (4 bytes): MUST be 0x00000000 and MUST be ignored.

biYPelsPerMeter (4 bytes): MUST be 0x00000000 and MUST be ignored.

biClrUsed (4 bytes): Unsigned integer as specified by the ColorUsed field of the BitmapInfoHeader object specified in [MS-WMF] section 2.2.2.3. MUST be 0x00000000.

biClrImportant (4 bytes): Unsigned integer as specified by the ColorImportant field of the BitmapInfoHeader object specified in [MS-WMF] section 2.2.2.3. MUST be 0x00000000.