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
| Improve this Doc View SourceStar(PointF, Int32, Single, Single)
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. |
Int32 | prongs | The number of verticies the Star should have. |
Single | innerRadii | The inner radii. |
Single | outerRadii | The outer radii. |
Star(PointF, Int32, Single, Single, Single)
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. |
Int32 | prongs | The number of points the Star should have. |
Single | innerRadii | The inner radii. |
Single | outerRadii | The outer radii. |
Single | angle | The angle of rotation in Radians |
Star(Single, Single, Int32, Single, Single)
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 |
---|---|---|
Single | x | The x-coordinate of the center of the polygon. |
Single | y | The y-coordinate of the center of the polygon. |
Int32 | prongs | The number of verticies the RegularPolygon should have. |
Single | innerRadii | The inner radii. |
Single | outerRadii | The outer radii. |
Star(Single, Single, Int32, Single, Single, Single)
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 |
---|---|---|
Single | x | The x-coordinate of the center of the polygon. |
Single | y | The y-coordinate of the center of the polygon. |
Int32 | prongs | The number of verticies the RegularPolygon should have. |
Single | innerRadii | The inner radii. |
Single | outerRadii | The outer radii. |
Single | angle | The angle of rotation in Radians |