IOverlay::GetVideoPosition

 
Microsoft DirectShow 9.0

IOverlay::GetVideoPosition

The GetVideoPosition method retrieves the current video source and destination rectangles.

Syntax

  HRESULT GetVideoPosition(
  RECT *pSourceRect,
  RECT *pDestinationRect
);

Parameters

pSourceRect

[out] Pointer to a RECT structure that receives the source rectangle.

pDestinationRect

[in] Pointer to to a RECT structure that receives the destination rectangle.

Return Value

Returns S_OK if successful. If the method fails, it returns an HRESULT error code.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also