SetOpacity method

Sets the opacity of the foreground surface.

Syntax


HRESULT retVal = object.SetOpacity(Opacity);

Parameters

Opacity [in]

Type: float

Value that indicates the opacity of the foreground surface. Values can range from 0.0 (fully transparent) to 1.0 (fully opaque).

Remarks

The opacity value is applied to the foreground surface when it is composited over the background surface.

See also

IDXSurfaceModifier::GetOpacity

 

 

Show: