Polygon Class
NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Shapes
Draws a polygon defined by a set of points.
public class Polygon : Shape
Constructors
Polygon()
public Polygon()
Creates an empty polygon.
Polygon(int[] pts)
public Polygon(int[] pts)
Creates a polygon from the given points.
Properties
Points
public int[] Points { get; set; }
The points that define the polygon as alternating x and y coordinates.
Methods
OnRender(Media.DrawingContext dc)
public override void OnRender(Media.DrawingContext dc)
Renders the polygon to the drawing context.