AggPas - Anti-Grain Geomertry for Object Pascal

TAgg2D.QuadricCurveTo(xCtrl, yCtrl, xTo, yTo)

Description

Adds a QUAD_TO_ABS path command to the current subpath. A new Quadratic Bezier curve starts at the Current Point position, bends by definition of provided control point and ends at provided coordinates. Current Point is finally changed to be at the end of a new Bezier curve segment.

This Quadratic Bezier curve definition is compliant with SVG specification.

Parameters

xCtrl: double

X coordinate of QuadCurve control point [in subpixels].

yCtrl: double

Y coordinate of QuadCurve control point [in subpixels].

xTo: double

X coordinate of end of a new QuadCurve segment [in subpixels].

yTo: double

Y coordinate of end of a new QuadCurve segment [in subpixels].

Example

See the Path Example page.