Represents a pen with a color and thickness.
public class Pen : DiGi.Core.Classes.SerializableObject
Inheritance 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
color
The color of the pen.
thickness System.Double
thickness
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
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
jsonObject
The JSON object containing pen data.
Gets the color of the pen.
public DiGi.Core.Classes.Color? Color { get; }
DiGi.Core.Classes.Color
Gets the thickness of the pen.
public double Thickness { get; }
System.Double
There was an error while loading. Please reload this page.