drawRoundRectangle method

void drawRoundRectangle({
  1. required double x1,
  2. required double y1,
  3. required double x2,
  4. required double y2,
  5. required double rx,
  6. required double ry,
})

DrawRoundRectangle() draws a rounded rectangle given two coordinates, x & y corner radiuses and using the current stroke, stroke width, and fill settings.

  • x1 : x ordinate of first coordinate
  • y1 : y ordinate of first coordinate
  • x2 : x ordinate of second coordinate
  • y2 : y ordinate of second coordinate
  • rx : radius of corner in horizontal direction
  • ry : radius of corner in vertical direction

Implementation

void drawRoundRectangle({
  required double x1,
  required double y1,
  required double x2,
  required double y2,
  required double rx,
  required double ry,
}) =>
    _magickWandBindings.DrawRoundRectangle(_wandPtr, x1, y1, x2, y2, rx, ry);