Table of Contents

Method FillConvexPoly

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FillConvexPoly(Mat, IEnumerable<Point>, Scalar, LineTypes, int)

Fills a convex polygon.

public static void FillConvexPoly(Mat img, IEnumerable<Point> pts, Scalar color, LineTypes lineType = LineTypes.Link8, int shift = 0)

Parameters

img Mat

Image

pts IEnumerable<Point>

The polygon vertices

color Scalar

Polygon color

lineType LineTypes

Type of the polygon boundaries

shift int

The number of fractional bits in the vertex coordinates

FillConvexPoly(InputOutputArray, InputArray, Scalar, LineTypes, int)

Fills a convex polygon.

public static void FillConvexPoly(InputOutputArray img, InputArray pts, Scalar color, LineTypes lineType = LineTypes.Link8, int shift = 0)

Parameters

img InputOutputArray

Image

pts InputArray

The polygon vertices

color Scalar

Polygon color

lineType LineTypes

Type of the polygon boundaries

shift int

The number of fractional bits in the vertex coordinates