Table of Contents

Class Pen

Namespace
nanoFramework.Presentation.Media
Assembly
nanoFramework.Graphics.dll

Defines a pen used for drawing lines and shapes.

public class Pen
Inheritance
Pen
Inherited Members
Extension Methods

Constructors

Pen(Color)

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

public Pen(Color color)

Parameters

color Color

The color of the pen.

Pen(Color, ushort)

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

public Pen(Color color, ushort thickness)

Parameters

color Color

The color of the pen.

thickness ushort

The thickness of the pen in pixels.

Fields

Color

Gets or sets the color of the pen.

public Color Color

Field Value

Color

Thickness

Gets or sets the thickness of the pen in pixels.

public ushort Thickness

Field Value

ushort