drawPathCurveToSmoothAbsolute method

void drawPathCurveToSmoothAbsolute({
  1. required double x2,
  2. required double y2,
  3. required double x,
  4. required double y,
})

DrawPathCurveToSmoothAbsolute() draws a cubic Bezier curve from the current point to (x,y) using absolute coordinates. The first control point is assumed to be the reflection of the second control point on the previous command relative to the current point. (If there is no previous command or if the previous command was not an DrawPathCurveToAbsolute, DrawPathCurveToRelative, DrawPathCurveToSmoothAbsolute or DrawPathCurveToSmoothRelative, assume the first control point is coincident with the current point.) (x2,y2) is the second control point (i.e., the control point at the end of the curve). At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

  • x2 x ordinate of second control point
  • y2 y ordinate of second control point
  • x x ordinate of termination point
  • y y ordinate of termination point

Implementation

void drawPathCurveToSmoothAbsolute({
  required double x2,
  required double y2,
  required double x,
  required double y,
}) =>
    _magickWandBindings.DrawPathCurveToSmoothAbsolute(
      _wandPtr,
      x2,
      y2,
      x,
      y,
    );