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 GroupOptionsConstructors
| Name | Description |
|---|---|
| GroupOptions() |
GroupOptions()
GroupOptions.cspublic GroupOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| BlendMode | Gets the blend mode that mixes the colors of the group with those under it. The default is BlendMode.Normal. |
| Bounds | Gets the rectangle the group can change, in the coordinates of the drawing, or null (the default) for the bounds of the clip. |
| IsIsolated | 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. |
| IsKnockout | 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. |
| MaskMode | Gets how the values of the mask of the group are read: its alpha, or its luminance. The default is MaskMode.Alpha. |
| Opacity | Gets the opacity of the group, from 0 to 1: it multiplies the alpha of the group. The default is 1. |
BlendMode
GroupOptions.csGets 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
Bounds
GroupOptions.csGets 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
IsIsolated
GroupOptions.csGets 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
IsKnockout
GroupOptions.csGets 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
MaskMode
GroupOptions.csGets 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; }