This topic has not yet been rated - Rate this topic

IBasicVideo::GetSourcePosition method

The GetSourcePosition method retrieves the position of the source rectangle.

Syntax


HRESULT GetSourcePosition(
  [out]  long *pLeft,
  [out]  long *pTop,
  [out]  long *pWidth,
  [out]  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 value

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Control.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IBasicVideo Interface

 

 

Send comments about this topic to Microsoft

Build date: 11/21/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.