-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Core.Drawing.Classes
github-actions[bot] edited this page Jul 15, 2026
·
2 revisions
Represents a pen with a color and thickness.
public class Pen : DiGi.Core.Classes.SerializableObjectInheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → Pen
Initializes a new instance of the Pen class with specified color and thickness.
public Pen(DiGi.Core.Classes.Color? color, double thickness);color DiGi.Core.Classes.Color
The color of the pen.
thickness System.Double
The thickness of the pen.
Initializes a new instance of the Pen class by copying another pen.
public Pen(DiGi.Core.Drawing.Classes.Pen? pen);pen Pen
The source pen to copy from.
Initializes a new instance of the Pen class from a JsonObject.
public Pen(System.Text.Json.Nodes.JsonObject? jsonObject);jsonObject System.Text.Json.Nodes.JsonObject
The JSON object containing pen data.
Gets the color of the pen.
public DiGi.Core.Classes.Color? Color { get; }Gets the thickness of the pen.
public double Thickness { get; }