Table of Contents

Method Ellipse

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Ellipse(InputOutputArray, Point, Size, double, double, double, Scalar, int, LineTypes, int)

Draws simple or thick elliptic arc or fills ellipse sector

public static void Ellipse(InputOutputArray img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness = 1, LineTypes lineType = LineTypes.Link8, int shift = 0)

Parameters

img InputOutputArray

Image.

center Point

Center of the ellipse.

axes Size

Length of the ellipse axes.

angle double

Rotation angle.

startAngle double

Starting angle of the elliptic arc.

endAngle double

Ending angle of the elliptic arc.

color Scalar

Ellipse color.

thickness int

Thickness of the ellipse arc. [By default this is 1]

lineType LineTypes

Type of the ellipse boundary. [By default this is LineType.Link8]

shift int

Number of fractional bits in the center coordinates and axes' values. [By default this is 0]

Ellipse(InputOutputArray, RotatedRect, Scalar, int, LineTypes)

Draws simple or thick elliptic arc or fills ellipse sector

public static void Ellipse(InputOutputArray img, RotatedRect box, Scalar color, int thickness = 1, LineTypes lineType = LineTypes.Link8)

Parameters

img InputOutputArray

Image.

box RotatedRect

The enclosing box of the ellipse drawn

color Scalar

Ellipse color.

thickness int

Thickness of the ellipse boundary. [By default this is 1]

lineType LineTypes

Type of the ellipse boundary. [By default this is LineType.Link8]