Skip to content

DiGi.Core.Drawing

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

DiGi.Core.Drawing Namespace

Classes

Convert Class

public static class Convert

Inheritance System.Object → Convert

Methods

Convert.ToDiGi(this Pen) Method

Converts a System.Drawing.Pen to a DiGi Pen.

public static DiGi.Core.Drawing.Classes.Pen? ToDiGi(this System.Drawing.Pen? pen);

Parameters

pen System.Drawing.Pen

The System.Drawing.Pen to convert.

Returns

Pen
A Pen instance, or null if the source pen is null.

Convert.ToDrawing(this Pen) Method

Converts a DiGi Pen to a System.Drawing.Pen.

public static System.Drawing.Pen? ToDrawing(this DiGi.Core.Drawing.Classes.Pen? pen);

Parameters

pen Pen

The Pen to convert.

Returns

System.Drawing.Pen
A System.Drawing.Pen instance, or null if the source pen is null.

Query Class

public static class Query

Inheritance System.Object → Query

Methods

Query.CompareByPixels(this Image, Image) Method

Compares two images by checking if all corresponding pixels are identical.

public static bool CompareByPixels(this System.Drawing.Image? image_1, System.Drawing.Image? image_2);

Parameters

image_1 System.Drawing.Image

The first image to compare.

image_2 System.Drawing.Image

The second image to compare.

Returns

System.Boolean
True if both images are identical in size and pixel data; otherwise, false.

Clone this wiki locally