Table of Contents

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

img InputOutputArray

Image where the circle is drawn.

centerX int

X-coordinate of the center of the circle.

centerY int

Y-coordinate of the center of the circle.

radius int

Radius of the circle.

color Scalar

Circle color.

thickness int

Thickness of the circle outline if positive, otherwise indicates that a filled circle has to be drawn. [By default this is 1]

lineType LineTypes

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

shift int

Number 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

img InputOutputArray

Image where the circle is drawn.

center Point

Center of the circle.

radius int

Radius of the circle.

color Scalar

Circle color.

thickness int

Thickness of the circle outline if positive, otherwise indicates that a filled circle has to be drawn. [By default this is 1]

lineType LineTypes

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

shift int

Number of fractional bits in the center coordinates and radius value. [By default this is 0]