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
imgInputOutputArrayImage.
centerPointCenter of the ellipse.
axesSizeLength of the ellipse axes.
angledoubleRotation angle.
startAngledoubleStarting angle of the elliptic arc.
endAngledoubleEnding angle of the elliptic arc.
colorScalarEllipse color.
thicknessintThickness of the ellipse arc. [By default this is 1]
lineTypeLineTypesType of the ellipse boundary. [By default this is LineType.Link8]
shiftintNumber 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
imgInputOutputArrayImage.
boxRotatedRectThe enclosing box of the ellipse drawn
colorScalarEllipse color.
thicknessintThickness of the ellipse boundary. [By default this is 1]
lineTypeLineTypesType of the ellipse boundary. [By default this is LineType.Link8]