Microsoft DirectX 8.1 (C++) |
The SetSourcePosition method sets the source rectangle.
Syntax
HRESULT SetSourcePosition(
long Left,
long Top,
long Width,
long Height
);
Parameters
Left
[in] Specifies the x-coordinate, in pixels.
Top
[in] Specifies the y-coordinate, in pixels.
Width
[in] Specifies the width, in pixels.
Height
[in] Specifies the height, in pixels.
Return Values
Returns an HRESULT value.
Remarks
This method has the same effect as individually calling the IBasicVideo::put_SourceLeft, IBasicVideo::put_SourceTop, IBasicVideo::put_SourceWidth, and IBasicVideo::put_SourceHeight methods.
Setting this coordinate does not affect the destination rectangle height.
See Also