IWMColorConvProps::SetFullCroppingParam Method
Sets the source and destination rectangles.
Syntax
HRESULT SetFullCroppingParam(
[in] LONG lSrcCropLeft,
[in] LONG lSrcCropTop,
[in] LONG lDstCropLeft,
[in] LONG lDstCropTop,
[in] LONG lCropWidth,
[in] LONG lCropHeight
);
Parameters
lSrcCropLeft [in]
Specifies the left edge of the source rectangle, in pixels.lSrcCropTop [in]
Specifies the top edge of the source rectangle, in pixels.lDstCropLeft [in]
Specifies the left edge of the destination rectangle, in pixels.lDstCropTop [in]
Specifies the top edge of the destination rectangle, in pixels.lCropWidth [in]
Specifies the width of the source and destination rectangles, in pixels.lCropHeight [in]
Specifies the height of the source and destination rectangles, in pixels.
Return Value
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 color converter copies the entire video frame. When you call this method, the color converter crops the video to the source rectangle and copies that portion to the destination rectangle.
This method is equivalent to setting the following properties:
- MFPKEY_COLORCONV_SRCLEFT
- MFPKEY_COLORCONV_SRCTOP
- MFPKEY_COLORCONV_DSTLEFT
- MFPKEY_COLORCONV_DSTTOP
- MFPKEY_COLORCONV_WIDTH
- MFPKEY_COLORCONV_HEIGHT
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Header |
Wmcodecdsp.h |
See Also
Send comments about this topic to Microsoft
Build date: 4/7/2010