Microsoft DirectX 8.1 (C++) |
The SetSourcePosition method sets the source rectangle. The video renderer crops to this rectangle.
Syntax
objVideo.SetSourcePosition(
Left As Long,
Top As Long,
Width As Long,
Height As Long)
Parameters
Left
Specifies the x-coordinate of the source rectangle, in pixels.
Top
Specifies the y-coordinate of the source rectangle, in pixels.
Width
Specifies the width of the source rectangle, in pixels.
Height
Specifies the height of the source rectangle, in pixels.
Return Values
This method does not return a value.
Remarks
This method has the same effect as setting the IBasicVideo2.SourceLeft, IBasicVideo2.SourceTop, IBasicVideo2.SourceWidth, and IBasicVideo2.SourceHeight properties.
See Also