2.2.2.1 Bitmap16 Object
The Bitmap16 Object specifies information about the dimensions and color format of a bitmap.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type |
Width |
||||||||||||||||||||||||||||||
Height |
WidthBytes |
||||||||||||||||||||||||||||||
Planes |
BitsPixel |
Bits (variable) |
|||||||||||||||||||||||||||||
... |
Type (2 bytes): A 16-bit signed integer that defines the bitmap type.
Width (2 bytes): A 16-bit signed integer that defines the width of the bitmap in pixels.
Height (2 bytes): A 16-bit signed integer that defines the height of the bitmap in scan lines.
WidthBytes (2 bytes): A 16-bit signed integer that defines the number of bytes per scan line.
Planes (1 byte): An 8-bit unsigned integer that defines the number of color planes in the bitmap. The value of this field MUST be 0x01.
BitsPixel (1 byte): An 8-bit unsigned integer that defines the number of adjacent color bits on each plane.
Bits (variable): A variable length array of bytes that defines the bitmap pixel data. The length of this field in bytes can be computed as follows.
-
-
(((Width * BitsPixel + 15) >> 4) << 1) * Height
-