Microsoft DirectX 8.1 (C++)

GetBitmapSubtype

The GetBitmapSubtype function returns the media subtype GUID for the specified bitmap.

Syntax

const GUID GetBitmapSubtype(
    const BITMAPINFOHEADER *pHeader
);

Parameters

pHeader

Pointer to a BITMAPINFOHEADER structure.

Return Value

Returns the media subtype GUID.

Remarks

For uncompressed RGB types, this function maps the biBitCount field to the subtype. For compressed video types, this function uses the FOURCCMap class to map the biCompression field to the subtype.

Requirements

Header: Declared in Wxutil.h; include Streams.h.

Library: Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also