| MatDrawContours Method (InputOutputArray, IEnumerableMat, Int32, Scalar, Int32, LineTypes, Mat, Int32, NullablePoint) | 
        
         
            Draws contours in the image
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic void DrawContours(
	InputOutputArray image,
	IEnumerable<Mat> contours,
	int contourIdx,
	Scalar color,
	int thickness = 1,
	LineTypes lineType = LineTypes.Link8,
	Mat hierarchy = null,
	int maxLevel = 2147483647,
	Nullable<Point> offset = null
)
Public Sub DrawContours ( 
	image As InputOutputArray,
	contours As IEnumerable(Of Mat),
	contourIdx As Integer,
	color As Scalar,
	Optional thickness As Integer = 1,
	Optional lineType As LineTypes = LineTypes.Link8,
	Optional hierarchy As Mat = Nothing,
	Optional maxLevel As Integer = 2147483647,
	Optional offset As Nullable(Of Point) = Nothing
)
public:
void DrawContours(
	InputOutputArray^ image, 
	IEnumerable<Mat^>^ contours, 
	int contourIdx, 
	Scalar color, 
	int thickness = 1, 
	LineTypes lineType = LineTypes::Link8, 
	Mat^ hierarchy = nullptr, 
	int maxLevel = 2147483647, 
	Nullable<Point> offset = nullptr
)
member DrawContours : 
        image : InputOutputArray * 
        contours : IEnumerable<Mat> * 
        contourIdx : int * 
        color : Scalar * 
        ?thickness : int * 
        ?lineType : LineTypes * 
        ?hierarchy : Mat * 
        ?maxLevel : int * 
        ?offset : Nullable<Point> 
(* Defaults:
        let _thickness = defaultArg thickness 1
        let _lineType = defaultArg lineType LineTypes.Link8
        let _hierarchy = defaultArg hierarchy null
        let _maxLevel = defaultArg maxLevel 2147483647
        let _offset = defaultArg offset null
*)
-> unit 
function DrawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy, maxLevel, offset);
Parameters
- image
- Type: OpenCvSharpInputOutputArray
 Destination image.
- contours
- Type: System.Collections.GenericIEnumerableMat
 All the input contours. Each contour is stored as a point vector.
- contourIdx
- Type: SystemInt32
 Parameter indicating a contour to draw. If it is negative, all the contours are drawn.
- color
- Type: OpenCvSharpScalar
 Color of the contours.
- thickness (Optional)
- Type: SystemInt32
 Thickness of lines the contours are drawn with. If it is negative (for example, thickness=CV_FILLED ), 
            the contour interiors are drawn.
- lineType (Optional)
- Type: OpenCvSharpLineTypes
 Line connectivity.
- hierarchy (Optional)
- Type: OpenCvSharpMat
 Optional information about hierarchy. It is only needed if you want to draw only some of the contours
- maxLevel (Optional)
- Type: SystemInt32
 Maximal level for drawn contours. If it is 0, only the specified contour is drawn. 
            If it is 1, the function draws the contour(s) and all the nested contours. If it is 2, the function draws the contours, 
            all the nested contours, all the nested-to-nested contours, and so on. This parameter is only taken into account 
            when there is hierarchy available.
- offset (Optional)
- Type: SystemNullablePoint
 Optional contour shift parameter. Shift all the drawn contours by the specified offset = (dx, dy)
 See Also
See Also