IResize::put_Size method

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note

[Deprecated. This API may be removed from future releases of Windows.]

 

The put_Size method sets the output size and stretch mode.

Syntax

HRESULT put_Size(
  [in] int Height,
  [in] int Width,
  [in] int Flags
);

Parameters

Height [in]

The video height, in pixels.

Width [in]

The video width, in pixels.

Flags [in]

The stretch mode. See Resize Flags for possible values.

Return value

Returns an HRESULT value.

Remarks

DES may call this method before or after calling put_MediaType. If DES calls this method before calling put_MediaType, the filter should select a default value for the bit depth and use the size values to construct an output media type. If DES calls this method after calling put_MediaType, the filter should modify its current output type with the new sizes.

DES may also call this method after the output pin is connected. In that case, modify the output type and reconnect the output pin with the new type. See Reconnecting Pins for more information.

The Flags parameter specifies how the filter should perform the resizing operation.

Note

The header file Qedit.h is not compatible with Direct3D headers later than version 7.

 

Note

To obtain Qedit.h, download the Microsoft Windows SDK Update for Windows Vista and .NET Framework 3.0. Qedit.h is not available in the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1.

 

Requirements

Requirement Value
Version
DirectX 9.0 or later
Header
Qedit.h
Library
Strmiids.lib

See also

Error and Success Codes

IResize Interface