Microsoft DirectX 8.1 (C++) |
The GetModeInfo method retrieves information about a specified mode.
Syntax
HRESULT GetModeInfo(
long Mode,
long *pWidth,
long *pHeight,
long *pDepth
);
Parameters
Mode
[in] Specified mode for which to retrieve information.
pWidth
[out] Pointer to the width, in pixels, of the mode's image display.
pHeight
[out] Pointer to the height, in pixels, of the mode's image display.
pDepth
[out] Pointer to the number of color bits per pixel.
Return Value
Returns an HRESULT value.
Remarks
This method returns the height, width, and color depth for a given mode that the renderer has available. The number of display modes available can be retrieved through IFullScreenVideo::CountModes.
For a list of modes available to the DirectShow full-screen video renderer, see IFullScreenVideo::SetEnabled.
See Also