Class StarPolygon
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
A star-shaped polygon defined by alternating inner and outer radii.
public sealed class StarPolygon : Polygon, ISimplePath, IPath
- Inheritance
-
StarPolygon
- Implements
- Inherited Members
- Extension Methods
Constructors
StarPolygon(PointF, int, float, float)
Initializes a new instance of the StarPolygon class.
public StarPolygon(PointF location, int prongs, float innerRadii, float outerRadii)
Parameters
locationPointFThe center point of the star.
prongsintThe number of star prongs.
innerRadiifloatThe inner star radius.
outerRadiifloatThe outer star radius.
StarPolygon(PointF, int, float, float, float)
Initializes a new instance of the StarPolygon class.
public StarPolygon(PointF location, int prongs, float innerRadii, float outerRadii, float angle)
Parameters
locationPointFThe center point of the star.
prongsintThe number of star prongs.
innerRadiifloatThe inner star radius.
outerRadiifloatThe outer star radius.
anglefloatThe angle of rotation in degrees.
StarPolygon(float, float, int, float, float)
Initializes a new instance of the StarPolygon class.
public StarPolygon(float x, float y, int prongs, float innerRadii, float outerRadii)
Parameters
xfloatThe x-coordinate of the star center.
yfloatThe y-coordinate of the star center.
prongsintThe number of star prongs.
innerRadiifloatThe inner star radius.
outerRadiifloatThe outer star radius.
StarPolygon(float, float, int, float, float, float)
Initializes a new instance of the StarPolygon class.
public StarPolygon(float x, float y, int prongs, float innerRadii, float outerRadii, float angle)