Table of Contents

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

location PointF

The center point of the star.

prongs int

The number of star prongs.

innerRadii float

The inner star radius.

outerRadii float

The 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

location PointF

The center point of the star.

prongs int

The number of star prongs.

innerRadii float

The inner star radius.

outerRadii float

The outer star radius.

angle float

The 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

x float

The x-coordinate of the star center.

y float

The y-coordinate of the star center.

prongs int

The number of star prongs.

innerRadii float

The inner star radius.

outerRadii float

The 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)

Parameters

x float

The x-coordinate of the star center.

y float

The y-coordinate of the star center.

prongs int

The number of star prongs.

innerRadii float

The inner star radius.

outerRadii float

The outer star radius.

angle float

The angle of rotation in degrees.