Partager via


IVMRWindowlessControl::SetAspectRatioMode

 
Microsoft DirectShow 9.0

IVMRWindowlessControl::SetAspectRatioMode

The SetAspectRatioMode method specifies whether the VMR will preserve 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:

Error Code Description
E_INVALIDARG Invalid argument
S_OK Success
VFW_E_WRONG_STATE The VMR is not in windowless mode.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also