Skip to main content

Class GraphicsPath

Represents a 2D graphics paths

Assembly: MicroGraphics.dll
View Source
public class GraphicsPath

Properties

LastPoint

The last point added to the path

View Source
public Point LastPoint { get; }

PointCount

The number of points in th path

View Source
public int PointCount { get; }

VerbCount

The number of verbs/actions used

View Source
public int VerbCount { get; }

Bounds

A rect that defines the full bounds of the path

View Source
public Rect Bounds { get; }

Fields

Points

The collection of points

View Source
public Point[]? Points

Methods

Reset()

Reset the path

View Source
public void Reset()

MoveTo(int, int)

Add a new point to the path

View Source
public void MoveTo(int x, int y)
Parameters
TypeNameDescription
System.Int32xThe x position
System.Int32yThe y position

MoveTo(Point)

Add a new point to the path

View Source
public void MoveTo(Point point)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.PointpointThe point position

RelativeMoveTo(int, int)

Add a new relative point to the path

View Source
public void RelativeMoveTo(int x, int y)
Parameters
TypeNameDescription
System.Int32xThe relative x position
System.Int32yThe relative y position

RelativeMoveTo(Point)

Add a new relative point to the path

View Source
public void RelativeMoveTo(Point point)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.PointpointThe relative point position

LineTo(int, int)

Add a line to the path

View Source
public void LineTo(int x, int y)
Parameters
TypeNameDescription
System.Int32xThe x line end location
System.Int32yThe y line end location

LineTo(Point)

Add a line to the path

View Source
public void LineTo(Point point)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.PointpointThe point line end location

RelativeLineTo(int, int)

Add a line to the path

View Source
public void RelativeLineTo(int x, int y)
Parameters
TypeNameDescription
System.Int32xThe relative x line end location
System.Int32yThe relative y line end location

RelativeLineTo(Point)

Add a line to the path

View Source
public void RelativeLineTo(Point point)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.PointpointThe relative point line end location

AddPolyLine(Point[])

Add an array of lines to the path

View Source
public void AddPolyLine(Point[] points)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.Point[]pointsThe points defining the lines to add

AddPath(GraphicsPath)

Add an existing path to the end of the path

View Source
public void AddPath(GraphicsPath path)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.GraphicsPathpathThe path to add

AddPathReverse(GraphicsPath)

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

View Source
public void AddPathReverse(GraphicsPath path)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.GraphicsPathpathThe path to add

Close()

Close the path

View Source
public void Close()