IBasicVideo::GetSourcePosition
Microsoft DirectShow 9.0 |
IBasicVideo::GetSourcePosition
The GetSourcePosition method retrieves the position of the source rectangle.
Syntax
HRESULT GetSourcePosition( long *pLeft, long *pTop, long *pWidth, long *pHeight );
Parameters
pLeft
[out] Pointer to a variable that receives the x-coordinate, in pixels.
pTop
[out] Pointer to a variable that receives the y-coordinate, in pixels.
pWidth
[out] Pointer to a variable that receives the width, in pixels.
pHeight
[out] Pointer to a variable that receives the height, in pixels.
Return Values
Returns an HRESULT value.
Remarks
This method has the same effect as individually calling the IBasicVideo::get_SourceLeft, IBasicVideo::get_SourceTop, IBasicVideo::get_SourceWidth, and IBasicVideo::get_SourceHeight methods.
Requirements
Header: Declared in Control.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also