drawLine method

void drawLine({
  1. required double sx,
  2. required double sy,
  3. required double ex,
  4. required double ey,
})

DrawLine() draws a line on the image using the current stroke color, stroke alpha, and stroke width.

  • sx starting x ordinate
  • sy starting y ordinate
  • ex ending x ordinate
  • ey ending y ordinate

Implementation

void drawLine({
  required double sx,
  required double sy,
  required double ex,
  required double ey,
}) =>
    _magickWandBindings.DrawLine(
      _wandPtr,
      sx,
      sy,
      ex,
      ey,
    );