Method Circle
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Circle(InputOutputArray, int, int, int, Scalar, int, LineTypes, int)
Draws a circle
public static void Circle(InputOutputArray img, int centerX, int centerY, int radius, Scalar color, int thickness = 1, LineTypes lineType = LineTypes.Link8, int shift = 0)
Parameters
imgInputOutputArrayImage where the circle is drawn.
centerXintX-coordinate of the center of the circle.
centerYintY-coordinate of the center of the circle.
radiusintRadius of the circle.
colorScalarCircle color.
thicknessintThickness of the circle outline if positive, otherwise indicates that a filled circle has to be drawn. [By default this is 1]
lineTypeLineTypesType of the circle boundary. [By default this is LineType.Link8]
shiftintNumber of fractional bits in the center coordinates and radius value. [By default this is 0]
Circle(InputOutputArray, Point, int, Scalar, int, LineTypes, int)
Draws a circle
public static void Circle(InputOutputArray img, Point center, int radius, Scalar color, int thickness = 1, LineTypes lineType = LineTypes.Link8, int shift = 0)
Parameters
imgInputOutputArrayImage where the circle is drawn.
centerPointCenter of the circle.
radiusintRadius of the circle.
colorScalarCircle color.
thicknessintThickness of the circle outline if positive, otherwise indicates that a filled circle has to be drawn. [By default this is 1]
lineTypeLineTypesType of the circle boundary. [By default this is LineType.Link8]
shiftintNumber of fractional bits in the center coordinates and radius value. [By default this is 0]