Windows Media Audio and Video Codec and DSP APIs IWMResizerProps::SetFullCropRegion 

banner art

Previous Next

IWMResizerProps::SetFullCropRegion

Sets the source and destination rectangles.

Syntax

  HRESULT SetFullCropRegion(
  LONG  lClipOriXSrc,
  LONG  lClipOriYSrc,
  LONG  lClipWidthSrc,
  LONG  lClipHeightSrc,
  LONG  lClipOriXDst,
  LONG  lClipOriYDst,
  LONG  lClipWidthDst,
  LONG  lClipHeightDst
);

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.

Header: Include wmcodecdsp.h.

See Also

Previous Next