Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IBasicVideo::SetSourcePosition method

The SetSourcePosition method sets the source rectangle.

Syntax


HRESULT SetSourcePosition(
  [in]  long Left,
  [in]  long Top,
  [in]  long Width,
  [in]  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 value

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.

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.