Table of Contents

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

location PointF

The location the center of the ellipse will be placed.

size SizeF

The width/height of the final ellipse.

EllipsePolygon(PointF, float)

Initializes a new instance of the EllipsePolygon class.

public EllipsePolygon(PointF location, float radius)

Parameters

location PointF

The location the center of the circle will be placed.

radius float

The radius final circle.

EllipsePolygon(float, float, float)

Initializes a new instance of the EllipsePolygon class.

public EllipsePolygon(float x, float y, float radius)

Parameters

x float

The x-coordinate of the center of the circle.

y float

The y-coordinate of the center of the circle.

radius float

The 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

x float

The x-coordinate of the center of the ellipse.

y float

The y-coordinate of the center of the ellipse.

width float

The width the ellipse should have.

height float

The height the ellipse should have.

Methods

Transform(Matrix4x4)

Transforms the path using the specified matrix.

public override IPath Transform(Matrix4x4 matrix)

Parameters

matrix Matrix4x4

The matrix.

Returns

IPath

A new path with the matrix applied to it.