Microsoft DirectX 9.0

IVMRWindowlessControl9::SetVideoPosition

The SetVideoPosition method sets the source and destination rectangles for the video.

Syntax

HRESULT SetVideoPosition(
  const LPRECT  lpSRCRect,
  const LPRECT  lpDSTRect
);

Parameters

lpSRCRect

[in]  Specifies the source rectangle.

lpDSTRect

[in]  Specifies the destination rectangle.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
S_OK The method succeeded.
VFW_E_WRONG_STATE The VMR is not in windowless mode.

Requirements

Include D3d9.h, Vmr9.h.

See Also