CvArrRectangle Method (CvPoint, CvPoint, CvScalar, Int32, LineType) OpenCvSharp Class Library
Draws simple, thick or filled rectangle

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void Rectangle(
	CvPoint pt1,
	CvPoint pt2,
	CvScalar color,
	int thickness,
	LineType lineType
)

Parameters

pt1
Type: OpenCvSharpCvPoint
One of the rectangle vertices.
pt2
Type: OpenCvSharpCvPoint
Opposite rectangle vertex.
color
Type: OpenCvSharpCvScalar
Line color (RGB) or brightness (grayscale image).
thickness
Type: SystemInt32
Thickness of lines that make up the rectangle. Negative values, e.g. CV_FILLED, make the function to draw a filled rectangle.
lineType
Type: OpenCvSharpLineType
Type of the line, see cvLine description.
See Also

Reference