GroupOptions Class

The attributes of a group (DrawingCanvas.Group): a set of drawings composited as a whole, which can mix with what is under it (a non-isolated group) and whose drawings can knock out one another (a knockout group), as the transparency groups of PDF (ISO 32000-2, 11.4) and the groups of the W3C Compositing and Blending specification.

public sealed class GroupOptions

Constructors

NameDescription
GroupOptions()

GroupOptions()

GroupOptions.cs
public GroupOptions()

No documentation is available.

Properties

NameDescription
BlendModeGets the blend mode that mixes the colors of the group with those under it. The default is BlendMode.Normal.
BoundsGets the rectangle the group can change, in the coordinates of the drawing, or null (the default) for the bounds of the clip.
IsIsolatedGets a value indicating whether the group is isolated: its drawings start on a transparent backdrop, as the drawings of a layer. A non-isolated group starts with the pixels under it, which its blend modes mix with; the pixels under it are then removed from its result before it is composited, so that they are not counted twice. The default is true.
IsKnockoutGets a value indicating whether the group is a knockout group: each element drawn with DrawingCanvas.KnockoutElement on the canvas of the group is composited with the initial backdrop of the group, and replaces the elements drawn before it in proportion to its shape. The default is false.
MaskModeGets how the values of the mask of the group are read: its alpha, or its luminance. The default is MaskMode.Alpha.
OpacityGets the opacity of the group, from 0 to 1: it multiplies the alpha of the group. The default is 1.

Gets the blend mode that mixes the colors of the group with those under it. The default is BlendMode.Normal.

public BlendMode BlendMode { get; init; }

Property value

BlendMode

Gets the rectangle the group can change, in the coordinates of the drawing, or null (the default) for the bounds of the clip.

public RectangleD? Bounds { get; init; }

Property value

RectangleD?

IsIsolated

GroupOptions.cs

Gets a value indicating whether the group is isolated: its drawings start on a transparent backdrop, as the drawings of a layer. A non-isolated group starts with the pixels under it, which its blend modes mix with; the pixels under it are then removed from its result before it is composited, so that they are not counted twice. The default is true.

public bool IsIsolated { get; init; }

Property value

bool

IsKnockout

GroupOptions.cs

Gets a value indicating whether the group is a knockout group: each element drawn with DrawingCanvas.KnockoutElement on the canvas of the group is composited with the initial backdrop of the group, and replaces the elements drawn before it in proportion to its shape. The default is false.

public bool IsKnockout { get; init; }

Property value

bool

Gets how the values of the mask of the group are read: its alpha, or its luminance. The default is MaskMode.Alpha.

public MaskMode MaskMode { get; init; }

Property value

MaskMode

Gets the opacity of the group, from 0 to 1: it multiplies the alpha of the group. The default is 1.

public double Opacity { get; init; }

Property value

double