Microsoft DirectX 8.1 (C++)

IVMRMixerControl::SetAlpha

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

The SetAlpha method sets a constant alpha value that is applied to this video stream.

Syntax

HRESULT SetAlpha(
  DWORD dwStreamID,
  float  Alpha
);

Parameters

dwStreamID

[in] Specifies the input stream.

Alpha

[in]  Specifies the alpha blending value to be applied to all the pixels in this stream.

Return Values

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

Error Code Description
VFW_E_NOT_CONNECTED The pin is not connected.

Remarks

The alpha value specified can be between 0.0 (fully transparent) and 1.0 (full opaque).

See Also