Share via


IWMResizerProps::SetFullCropRegion

banner art

Sets the source and destination rectangles.

Syntax

HRESULT SetFullCropRegion(LONGlClipOriXSrc,LONGlClipOriYSrc,LONGlClipWidthSrc,LONGlClipHeightSrc,LONGlClipOriXDst,LONGlClipOriYDst,LONGlClipWidthDst,LONGlClipHeightDst);

Parameters

lClipOriXSrc

[in]  Specifies the left edge of the source rectangle, in pixels.

lClipOriYSrc

[in]  Specifies the top edge of the source rectangle, in pixels.

lClipWidthSrc

[in]  Specifies the width of the source rectangle, in pixels.

lClipHeightSrc

[in]  Specifies the height of the source rectangle, in pixels.

lClipOriXDst

[in]  Specifies the left edge of the destination rectangle, in pixels.

lClipOriYDst

[in]  Specifies the top edge of the destination rectangle, in pixels.

lClipWidthDst

[in]  Specifies the width of the destination rectangle, in pixels.

lClipHeightDst

[in]  Specifies the height of the destination rectangle, in pixels.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

By default, the video resizer copies the entire video frame. When you call this method, the video resizer crops the video to the source rectangle and copies that portion to the destination rectangle.

This method is equivalent to setting the following properties:

Requirements

Client: Requires Windows Vista or Windows XP.

Header: Include wmcodecdsp.h.

See Also