Characteristic Locus
Inheritance object > GraphicsPath
Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.Graphics
Assembly MicroGraphics.dll

Syntax

public class GraphicsPath

Constructors

GraphicsPath()

Create a new GraphicsPath object

Declaration
public GraphicsPath()

GraphicsPath(GraphicsPath)

Create a new GraphicsPath object

Declaration
public GraphicsPath(GraphicsPath path)

Parameters

Type Name Description
GraphicsPath path

Initial path data

Fields

Points

The collection of points

Declaration
public Point[]? Points

Field Value

Type Description
Point[]

Properties

Bounds

A rect that defines the full bounds of the path

Declaration
public Rect Bounds { get; }

Property Value

Type Description
Rect

LastPoint

The last point added to the path

Declaration
public Point LastPoint { get; }

Property Value

Type Description
Point

PointCount

The number of points in th path

Declaration
public int PointCount { get; }

Property Value

Type Description
int

VerbCount

The number of verbs/actions used

Declaration
public int VerbCount { get; }

Property Value

Type Description
int

Methods

AddPath(GraphicsPath)

Add an existing path to the end of the path

Declaration
public void AddPath(GraphicsPath path)

Parameters

Type Name Description
GraphicsPath path

The path to add

AddPathReverse(GraphicsPath)

Add an existing path to the end of the path in reverse order

Declaration
public void AddPathReverse(GraphicsPath path)

Parameters

Type Name Description
GraphicsPath path

The path to add

AddPolyLine(Point[])

Add an array of lines to the path

Declaration
public void AddPolyLine(Point[] points)

Parameters

Type Name Description
Point[] points

The points defining the lines to add

Close()

Close the path

Declaration
public void Close()

LineTo(Point)

Add a line to the path

Declaration
public void LineTo(Point point)

Parameters

Type Name Description
Point point

The point line end location

LineTo(int, int)

Add a line to the path

Declaration
public void LineTo(int x, int y)

Parameters

Type Name Description
int x

The x line end location

int y

The y line end location

MoveTo(Point)

Add a new point to the path

Declaration
public void MoveTo(Point point)

Parameters

Type Name Description
Point point

The point position

MoveTo(int, int)

Add a new point to the path

Declaration
public void MoveTo(int x, int y)

Parameters

Type Name Description
int x

The x position

int y

The y position

RelativeLineTo(Point)

Add a line to the path

Declaration
public void RelativeLineTo(Point point)

Parameters

Type Name Description
Point point

The relative point line end location

RelativeLineTo(int, int)

Add a line to the path

Declaration
public void RelativeLineTo(int x, int y)

Parameters

Type Name Description
int x

The relative x line end location

int y

The relative y line end location

RelativeMoveTo(Point)

Add a new relative point to the path

Declaration
public void RelativeMoveTo(Point point)

Parameters

Type Name Description
Point point

The relative point position

RelativeMoveTo(int, int)

Add a new relative point to the path

Declaration
public void RelativeMoveTo(int x, int y)

Parameters

Type Name Description
int x

The relative x position

int y

The relative y position

Reset()

Reset the path

Declaration
public void Reset()