lineAsync function
Line draws a line segment connecting two points.
For further details, please see: https:///docs.opencv.org/master/d6/d6e/group__imgproc__draw.html#ga7078a9fae8c7e7d13d24dac2520ae4a2
Implementation
Future<Mat> lineAsync(
InputOutputArray img,
Point pt1,
Point pt2,
Scalar color, {
int thickness = 1,
int lineType = LINE_8,
int shift = 0,
}) async =>
cvRunAsync0(
(callback) =>
cffi.Line_Async(img.ref, pt1.ref, pt2.ref, color.ref, thickness, lineType, shift, callback),
(completer) => completer.complete(img),
);