drawRectangle method

void drawRectangle({
  1. required double x1,
  2. required double y1,
  3. required double x2,
  4. required double y2,
})

DrawRectangle() draws a rectangle given two coordinates 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

Implementation

void drawRectangle({
  required double x1,
  required double y1,
  required double x2,
  required double y2,
}) =>
    _magickWandBindings.DrawRectangle(_wandPtr, x1, y1, x2, y2);