Class DrawContoursOptions

Constructors

Properties

lineType?: number

Line connectivity. See LineTypes

maxLevel?: number

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?: Point2

Optional contour shift parameter. Shift all the drawn contours by the specified offset=(dx,dy) .

thickness?: number

Thickness of lines the contours are drawn with. If it is negative (for example, thickness=FILLED ), the contour interiors are drawn.