Class EllipsePolygon
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
An elliptical shape made up of a single path made up of one of more ILineSegments.
public sealed class EllipsePolygon : Polygon, ISimplePath, IPath
- Inheritance
-
EllipsePolygon
- Implements
- Inherited Members
- Extension Methods
Constructors
EllipsePolygon(PointF, SizeF)
Initializes a new instance of the EllipsePolygon class.
public EllipsePolygon(PointF location, SizeF size)
Parameters
locationPointFThe location the center of the ellipse will be placed.
sizeSizeFThe width/height of the final ellipse.
EllipsePolygon(PointF, float)
Initializes a new instance of the EllipsePolygon class.
public EllipsePolygon(PointF location, float radius)
Parameters
locationPointFThe location the center of the circle will be placed.
radiusfloatThe radius final circle.
EllipsePolygon(float, float, float)
Initializes a new instance of the EllipsePolygon class.
public EllipsePolygon(float x, float y, float radius)
Parameters
xfloatThe x-coordinate of the center of the circle.
yfloatThe y-coordinate of the center of the circle.
radiusfloatThe radius final circle.
EllipsePolygon(float, float, float, float)
Initializes a new instance of the EllipsePolygon class.
public EllipsePolygon(float x, float y, float width, float height)
Parameters
xfloatThe x-coordinate of the center of the ellipse.
yfloatThe y-coordinate of the center of the ellipse.
widthfloatThe width the ellipse should have.
heightfloatThe height the ellipse should have.
Methods
Transform(Matrix4x4)
Transforms the path using the specified matrix.
public override IPath Transform(Matrix4x4 matrix)
Parameters
matrixMatrix4x4The matrix.
Returns
- IPath
A new path with the matrix applied to it.