Skip to content

DiGi.Core.Drawing.Classes

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Core.Drawing.Classes Namespace

Classes

Pen Class

Represents a pen with a color and thickness.

public class Pen : DiGi.Core.Classes.SerializableObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObject → Pen

Constructors

Pen(Color, double) Constructor

Initializes a new instance of the Pen class with specified color and thickness.

public Pen(DiGi.Core.Classes.Color? color, double thickness);

Parameters

color DiGi.Core.Classes.Color

The color of the pen.

thickness System.Double

The thickness of the pen.

Pen(Pen) Constructor

Initializes a new instance of the Pen class by copying another pen.

public Pen(DiGi.Core.Drawing.Classes.Pen? pen);

Parameters

pen Pen

The source pen to copy from.

Pen(JsonObject) Constructor

Initializes a new instance of the Pen class from a JsonObject.

public Pen(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing pen data.

Properties

Pen.Color Property

Gets the color of the pen.

public DiGi.Core.Classes.Color? Color { get; }

Property Value

DiGi.Core.Classes.Color

Pen.Thickness Property

Gets the thickness of the pen.

public double Thickness { get; }

Property Value

System.Double

Clone this wiki locally