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
imgMatImage
ptsIEnumerable<IEnumerable<Point>>Array of polygons, each represented as an array of points
colorScalarPolygon color
lineTypeLineTypesType of the polygon boundaries
shiftintThe number of fractional bits in the vertex coordinates
offsetPoint?
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
imgInputOutputArrayImage
ptsInputArrayArray of polygons, each represented as an array of points
colorScalarPolygon color
lineTypeLineTypesType of the polygon boundaries
shiftintThe number of fractional bits in the vertex coordinates
offsetPoint?