rectangle function

void rectangle(
  1. VARP img,
  2. (double, double) pt1,
  3. (double, double) pt2,
  4. Scalar color, {
  5. int thickness = 1,
  6. int lineType = LINE_8,
  7. int shift = 0,
})

Implementation

void rectangle(
  VARP img,
  (double, double) pt1,
  (double, double) pt2,
  Scalar color, {
  int thickness = 1,
  int lineType = LINE_8,
  int shift = 0,
}) {
  final cPt1 = Point.fromTuple(pt1);
  final cPt2 = Point.fromTuple(pt2);
  c.mnn_cv_rectangle(img.ptr, cPt1.ref, cPt2.ref, color.ref, thickness, lineType, shift);
  cPt1.dispose();
  cPt2.dispose();
}