Table of Contents

Method FillPoly

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FillPoly(Mat, IEnumerable<IEnumerable<Point>>, Scalar, LineTypes, int, Point?)

Fills the area bounded by one or more polygons

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

Parameters

img Mat

Image

pts IEnumerable<IEnumerable<Point>>

Array of polygons, each represented as an array of points

color Scalar

Polygon color

lineType LineTypes

Type of the polygon boundaries

shift int

The number of fractional bits in the vertex coordinates

offset Point?

FillPoly(InputOutputArray, InputArray, Scalar, LineTypes, int, Point?)

Fills the area bounded by one or more polygons

public static void FillPoly(InputOutputArray img, InputArray pts, Scalar color, LineTypes lineType = LineTypes.Link8, int shift = 0, Point? offset = null)

Parameters

img InputOutputArray

Image

pts InputArray

Array of polygons, each represented as an array of points

color Scalar

Polygon color

lineType LineTypes

Type of the polygon boundaries

shift int

The number of fractional bits in the vertex coordinates

offset Point?