Microsoft DirectX 9.0

IVMRWindowlessControl::SetColorKey

The SetColorKey method sets the source color key value that the VMR should use.

Syntax

HRESULT SetColorKey(
  COLORREF  Clr
);

Parameters

Clr

[in]  Specifies the source color key.

Return Values

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

Error Code Description
VFW_E_WRONG_STATE The VMR is not in windowless mode.

Remarks

Color key control is only meaningful when the VMR is using an overlay surface.

See Also