Class Star
A shape made up of a single closed path made up of one of more ILineSegments
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public sealed class Star : Polygon, ISimplePath, IPath
Constructors
| Edit this page View SourceStar(PointF, int, float, float)
Initializes a new instance of the Star class.
Declaration
public Star(PointF location, int prongs, float innerRadii, float outerRadii)
Parameters
Type | Name | Description |
---|---|---|
PointF | location | The location the center of the polygon will be placed. |
int | prongs | The number of vertices the Star should have. |
float | innerRadii | The inner radii. |
float | outerRadii | The outer radii. |
Star(PointF, int, float, float, float)
Initializes a new instance of the Star class.
Declaration
public Star(PointF location, int prongs, float innerRadii, float outerRadii, float angle)
Parameters
Type | Name | Description |
---|---|---|
PointF | location | The location the center of the polygon will be placed. |
int | prongs | The number of points the Star should have. |
float | innerRadii | The inner radii. |
float | outerRadii | The outer radii. |
float | angle | The angle of rotation in Radians |
Star(float, float, int, float, float)
Initializes a new instance of the Star class.
Declaration
public Star(float x, float y, int prongs, float innerRadii, float outerRadii)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x-coordinate of the center of the polygon. |
float | y | The y-coordinate of the center of the polygon. |
int | prongs | The number of vertices the RegularPolygon should have. |
float | innerRadii | The inner radii. |
float | outerRadii | The outer radii. |
Star(float, float, int, float, float, float)
Initializes a new instance of the Star class.
Declaration
public Star(float x, float y, int prongs, float innerRadii, float outerRadii, float angle)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x-coordinate of the center of the polygon. |
float | y | The y-coordinate of the center of the polygon. |
int | prongs | The number of vertices the RegularPolygon should have. |
float | innerRadii | The inner radii. |
float | outerRadii | The outer radii. |
float | angle | The angle of rotation in Radians |