Share via


IMSVidCtl::put_MaintainAspectRatio Method

This topic applies to Windows XP or later.
The put_MaintainAspectRatio method specifies whether the Video Control maintains the aspect ratio of the source video.

Syntax

HRESULT put_MaintainAspectRatio(
  [in]  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 Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Requirements

Header Declared in Dshow.h.
DLL Requires Quartz.dll.

See Also

IMSVidCtl::get_MaintainAspectRatio
IMSVidCtl Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008