Class RegularPolygon
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
A shape made up of a single path made up of one of more ILineSegments
public class RegularPolygon : Polygon, ISimplePath, IPath
- Inheritance
-
RegularPolygon
- Implements
- Inherited Members
- Extension Methods
Constructors
RegularPolygon(PointF, int, float)
Initializes a new instance of the RegularPolygon class.
public RegularPolygon(PointF location, int vertices, float radius)
Parameters
locationPointFThe location the center of the polygon will be placed.
verticesintThe number of vertices the RegularPolygon should have.
radiusfloatThe radius of the circle that would touch all vertices.
RegularPolygon(PointF, int, float, float)
Initializes a new instance of the RegularPolygon class.
public RegularPolygon(PointF location, int vertices, float radius, float angle)
Parameters
locationPointFThe location the center of the polygon will be placed.
verticesintThe number of vertices the RegularPolygon should have.
radiusfloatThe radius of the circle that would touch all vertices.
anglefloatThe angle of rotation in degrees.
RegularPolygon(float, float, int, float)
Initializes a new instance of the RegularPolygon class.
public RegularPolygon(float x, float y, int vertices, float radius)
Parameters
xfloatThe x-coordinate of the center of the polygon.
yfloatThe y-coordinate of the center of the polygon.
verticesintThe number of vertices the RegularPolygon should have.
radiusfloatThe radius of the circle that would touch all vertices.
RegularPolygon(float, float, int, float, float)
Initializes a new instance of the RegularPolygon class.
public RegularPolygon(float x, float y, int vertices, float radius, float angle)