SetSourcePosition

IBasicVideo::SetSourcePosition method

The SetSourcePosition method sets the source rectangle.

Syntax


HRESULT SetSourcePosition(
  [inlong Left,
  [inlong Top,
  [inlong Width,
  [inlong 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

 

 

Show:
© 2016 Microsoft