Microsoft DirectX 8.1 (C++)

CImageDisplay::UpdateFormat

Updates the VIDEOINFO structure to remove implicit assumptions.

Syntax

HRESULT UpdateFormat(
    VIDEOINFO *pVideoInfo
);

Parameters

pVideoInfo

Pointer to the VIDEOINFO structure to update.

Return Value

Returns an HRESULT value. Current implementation returns NOERROR.

Remarks

This member function is probably suitable only for specific filters to use. The BITMAPINFO structure has certain fields that are not well specified. In particular, the number of colors specified for a palette can be zero, in which case it is defined to be the maximum for that format type. This member function updates these fields so that their contents are explicit.

See Also