Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The put_MaintainAspectRatio method specifies whether the Video Control maintains the aspect ratio of the source video.
Syntax
HRESULT put_MaintainAspectRatio(
VARIANT_BOOL NewValue
);
Parameters
NewValue
[in] Specifies one of the following values.
Value | Description |
VARIANT_TRUE | The Video Control will maintain the aspect ratio of the source video. |
VARIANT_FALSE | The Video Control will stretch the video to fill the window. Default |
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
See Also