fillPolyAsync function

Future<Mat> fillPolyAsync(
  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

Future<Mat> fillPolyAsync(
  InputOutputArray img,
  VecVecPoint pts,
  Scalar color, {
  int lineType = LINE_8,
  int shift = 0,
  Point? offset,
}) async =>
    cvRunAsync0(
      (callback) => cimgproc.FillPolyWithParams_Async(
        img.ref,
        pts.ref,
        color.ref,
        lineType,
        shift,
        offset?.ref ?? Point(-1, -1).ref,
        callback,
      ),
      (completer) => completer.complete(img),
    );