clipLineAsync function
ClipLine clips the line against the image rectangle. For further details, please see: https:///docs.opencv.org/master/d6/d6e/group__imgproc__draw.html#gaf483cb46ad6b049bc35ec67052ef1c2c
Implementation
Future<(bool, Point, Point)> clipLineAsync(Rect imgRect, Point pt1, Point pt2) async =>
cvRunAsync((callback) => cffi.ClipLine_Async(imgRect.ref, pt1.ref, pt2.ref, callback),
(completer, p) {
final success = p.cast<ffi.Bool>().value;
calloc.free(p);
completer.complete((success, pt1, pt2));
});