LayerOpacity Enum

How the opacity of a layer combines with its operator.

public enum LayerOpacity

Fields

NameValueDescription
Coverage0The opacity is a coverage of what the operator makes, as the edge of a shape is: a pixel gets o R + (1 - o) D, where R is the layer combined with the canvas D. This is the default.
Group1The group opacity of CSS: the alpha of every pixel of the layer is multiplied by the opacity, then the layer is combined with the canvas by the operator. With CompositeMode.Plus, opaque white at 0.6 over an alpha of 0.6 gives 1; with CompositeMode.DestinationIn, a mask at half its opacity keeps half of what it covers and nothing of what it does not cover. With CompositeMode.SourceOver, it is LayerOpacity.Coverage, pixel for pixel.