globalAlpha property

[This documentation is preliminary and is subject to change.]

Gets or sets the current alpha or transparency value that is applied to global composite rendering operations.

HTML Canvas 2D Context, Section 4Internet Explorer 9

Syntax

HRESULT value = object.put_globalAlpha(float v);HRESULT value = object.get_globalAlpha(float* p);

Property values

Type: float

0.0 (fully transparent) to 1.0 (no transparency)

The alpha value.

1.0

Default.

Standards information

Remarks

If you set the globalAlpha property to a value outside the range (including infinity or not a number (NaN)), the previous value is preserved.

 

 

Build date: 1/23/2012