This is retired content. This content is outdated and is no
longer being maintained. It is provided as a courtesy for
individuals who are still using these technologies. This content
may contain URLs that were valid when originally published, but now
link to sites or pages that no longer exist.
BITMAPINFOHEADERstructure contains information for the video
stream of an AVI RIFF file. This structure has the following
Specifies the number of bytes required by the structure.
Specifies the width of the bitmap, in pixels.
Specifies the height of the bitmap, in pixels. If
biHeightis positive, the bitmap is a bottom-up DIB
(device-independent bitmap) and its origin is the lower left
biHeightis negative, the bitmap is a top-down DIB and its
origin is the upper left corner.
Specifies the number of planes for the target device. This
value must be set to 1.
Specifies the number of bits per pixel. Some compression
formats need this information to properly decode the colors in the
Specifies the type of compression used or requested. Both
existing and new compression formats use this member.
Specifies the size, in bytes, of the image. This can be set to
0 for uncompressed RGB bitmaps.
Specifies the horizontal resolution, in pixels per meter, of
the target device for the bitmap. An application can use this value
to select a bitmap from a resource group that best matches the
characteristics of the current device.
Specifies the vertical resolution, in pixels per meter, of the
target device for the bitmap.
Specifies the number of color indices in the color table that
are actually used by the bitmap. If this value is zero, the bitmap
uses the maximum number of colors corresponding to the value of the
biBitCountmember for the compression mode specified by
Specifies the number of color indices that are considered
important for displaying the bitmap. If this value is zero, all
colors are important.
When the value in the
biBitCountmember is set to greater than eight, video drivers
can assume bitmaps are true color and they do not use a color
When the value in the
biBitCountmember is set to less than or equal to eight,
video drivers can assume the bitmap uses a palette or color table
defined in the
BITMAPINFOdata structure. This data structure has the