drawPathEllipticArcAbsolute method

void drawPathEllipticArcAbsolute({
  1. required double rx,
  2. required double ry,
  3. required double xAxisRotation,
  4. required bool largeArcFlag,
  5. required bool sweepFlag,
  6. required double x,
  7. required double y,
})

DrawPathEllipticArcAbsolute() draws an elliptical arc from the current point to (x, y) using absolute coordinates. The size and orientation of the ellipse are defined by two radii (rx, ry) and an xAxisRotation, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center (cx, cy) of the ellipse is calculated automagically to satisfy the constraints imposed by the other parameters. largeArcFlag and sweepFlag contribute to the automatic calculations and help determine how the arc is drawn. If largeArcFlag is true then draw the larger of the available arcs. If sweepFlag is true, then draw the arc matching a clock-wise rotation.

  • rx x radius
  • ry y radius
  • xAxisRotation indicates how the ellipse as a whole is rotated relative to the current coordinate system
  • largeArcFlag If true then draw the larger of the available arcs
  • sweepFlag If true then draw the arc matching a clock-wise rotation

Implementation

void drawPathEllipticArcAbsolute({
  required double rx,
  required double ry,
  required double xAxisRotation,
  required bool largeArcFlag,
  required bool sweepFlag,
  required double x,
  required double y,
}) =>
    _magickWandBindings.DrawPathEllipticArcAbsolute(
      _wandPtr,
      rx,
      ry,
      xAxisRotation,
      largeArcFlag.toInt(),
      sweepFlag.toInt(),
      x,
      y,
    );