Table of Contents

Property Opacity

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

Opacity

Gets the opacity of the layer. The range is [0, 1], where 0 is fully transparent (effectively invisible) and 1 is fully opaque. This value is used to modulate the alpha values for pixels in the layer.

float Opacity { get; set; }

Property Value

float

Remarks

When setting this property, values outside the [0, 1] range will be clamped to that range.

Exceptions

ArgumentException

The value is either non-finite (e.g. infinity) or NaN.