CvDrawRect Method (CvArr, CvPoint, CvPoint, CvScalar) 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 static void DrawRect(
	CvArr img,
	CvPoint pt1,
	CvPoint pt2,
	CvScalar color
)

Parameters

img
Type: OpenCvSharpCvArr
Image.
pt1
Type: OpenCvSharpCvPoint
One of the rectangle vertices.
pt2
Type: OpenCvSharpCvPoint
Opposite rectangle vertex.
color
Type: OpenCvSharpCvScalar
Line color (RGB) or brightness (grayscale image).
See Also

Reference