fillPoly function

Mat fillPoly(
  1. InputOutputArray img,
  2. VecVecPoint pts,
  3. Scalar color, {
  4. int lineType = LINE_8,
  5. int shift = 0,
  6. Point? offset,
})

FillPolyWithParams fills the area bounded by one or more polygons.

For more information, see: https:///docs.opencv.org/master/d6/d6e/group__imgproc__draw.html#gaf30888828337aa4c6b56782b5dfbd4b7

Implementation

Mat fillPoly(
  InputOutputArray img,
  VecVecPoint pts,
  Scalar color, {
  int lineType = LINE_8,
  int shift = 0,
  Point? offset,
}) {
  offset ??= Point(0, 0);
  cvRun(() => cimgproc.FillPolyWithParams(img.ref, pts.ref, color.ref, lineType, shift, offset!.ref));
  return img;
}