Microsoft DirectX 8.1 (C++)

IVPManager::SetVideoPortRects

This topic applies to Windows XP Home Edition and Windows XP Professional only.

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