Microsoft DirectX 9.0

IVMRAspectRatioControl9::SetAspectRatioMode

The SetAspectRatioMode method specifies whether the VMR preserves the aspect ratio of the source video.

Syntax

HRESULT SetAspectRatioMode(
  DWORD AspectRatioMode
);

Parameters

AspectRatioMode

[in]  Specifies a member of the VMR_ASPECT_RATIO_MODE enumeration type.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
E_INVALIDARG Invalid argument
S_OK Success

Requirements

Include D3d9.h, Vmr9.h.

See Also