CvArrDrawContours Method (CvSeqCvPoint, CvScalar, CvScalar, Int32, Int32, LineType) OpenCvSharp Class Library
Draws contour outlines or interiors in the image

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

public void DrawContours(
	CvSeq<CvPoint> contour,
	CvScalar externalColor,
	CvScalar holeColor,
	int maxLevel,
	int thickness,
	LineType lineType
)

Parameters

contour
Type: OpenCvSharpCvSeqCvPoint
Reference to the first contour.
externalColor
Type: OpenCvSharpCvScalar
Color of the external contours.
holeColor
Type: OpenCvSharpCvScalar
Color of internal contours (holes).
maxLevel
Type: SystemInt32
Maximal level for drawn contours. If 0, only contour is drawn. If 1, the contour and all contours after it on the same level are drawn. If 2, all contours after and all contours one level below the contours are drawn, etc. If the value is negative, the function does not draw the contours following after contour but draws child contours of contour up to abs(max_level)-1 level.
thickness
Type: SystemInt32
Thickness of lines the contours are drawn with. If it is negative (e.g. =CV_FILLED), the contour interiors are drawn.
lineType
Type: OpenCvSharpLineType
Type of the contour segments.
See Also

Reference