ellipse function

void ellipse(
  1. VARP img,
  2. (double, double) center,
  3. (int, int) axes,
  4. double angle,
  5. double startAngle,
  6. double endAngle,
  7. Scalar color, {
  8. int thickness = 1,
  9. int lineType = LINE_8,
  10. int shift = 0,
})

Implementation

void ellipse(
  VARP img,
  (double, double) center,
  (int, int) axes,
  double angle,
  double startAngle,
  double endAngle,
  Scalar color, {
  int thickness = 1,
  int lineType = LINE_8,
  int shift = 0,
}) {
  final cCenter = Point.fromTuple(center);
  final cAxes = Size.fromTuple(axes);
  c.mnn_cv_ellipse(
    img.ptr,
    cCenter.ref,
    cAxes.ref,
    angle,
    startAngle,
    endAngle,
    color.ref,
    thickness,
    lineType,
    shift,
  );
  cCenter.dispose();
  cAxes.dispose();
}