AggPas - Anti-Grain Geomertry for Object Pascal

TAgg2D.QuadricCurveRel(dxCtrl, dyCtrl, dxTo, dyTo)

Description

Adds a QUAD_TO_REL path command to the current subpath. A new Quadratic Bézier curve starts at the Current Point position, bends by definition of Current Point plus defined delta control point and ends at Current Point position plus defined delta coordinates. Current Point is finally changed to be at the end of a new Bézier curve segment.

This Quadratic Bézier curve definition is compliant with SVG specification.

Parameters

dxCtrl: double

Addition (delta +/-) to the Current Point for control point on X axis [in subpixels].

dyCtrl: double

Addition (delta +/-) to the Current Point for control point on Y axis [in subpixels].

dxTo: double

Change (delta +/-) to the Current Point coordinate on X axis [in subpixels].

dyTo: double

Change (delta +/-) to the Current Point coordinate on Y axis [in subpixels].

Example

See the Path Example page.