drawRectangle method
void
drawRectangle({})
DrawRectangle() draws a rectangle given two coordinates and using the current stroke, stroke width, and fill settings.
x1
: x ordinate of first coordinatey1
: y ordinate of first coordinatex2
: x ordinate of second coordinatey2
: 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);