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
ColorThe 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
Fields
Color
Gets or sets the color of the pen.
public Color Color
Field Value
Thickness
Gets or sets the thickness of the pen in pixels.
public ushort Thickness