fillPolyAsync function
Future<Mat>
fillPolyAsync(
- InputOutputArray img,
- VecVecPoint pts,
- Scalar color, {
- int lineType = LINE_8,
- int shift = 0,
- 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,
}) {
offset ??= Point(0, 0);
return cvRunAsync0(
(callback) => cimgproc.cv_fillPoly_1(img.ref, pts.ref, color.ref, lineType, shift, offset!.ref, callback),
(c) {
return c.complete(img);
},
);
}