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,
}) async =>
cvRunAsync0(
(callback) => cffi.FillPolyWithParams_Async(
img.ref,
pts.ref,
color.ref,
lineType,
shift,
offset?.ref ?? Point(-1, -1).ref,
callback,
),
(completer) => completer.complete(img),
);