Microsoft DirectX 9.0

IVPManager::SetVideoPortRects

The SetVideoPortRects method specifies the source and destination rectangles for the currently selected video port.

Syntax

HRESULT SetVideoPortRects(
  const RECT*  pSrc,
  const RECT*  pDest
);

Parameters

pSrc

[in]  Pointer to a RECT that specifies the source rectangle.

pDest

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

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

For both pSrc and pDest, specify NULL to indicate the entire image.

See Also