From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

GraphicsPath.AddQuadraticCurveToPoint(cpX As Double, cpY As Double, x As Double, y As Double)

New in 2019r2

Supported for all project types and targets.

Adds a quadratic Bézier curve to the point in the path.


Value Description
cpX The x-coordinate of the control point.
cpY The y-coordinate of the control point.
x The x-coordinate of the end point of the curve.
y The y-coordinate of the end point of the curve.

Sample Code

Draw a curve:

Var qCurve As New GraphicsPath
qCurve.MoveToPoint(38, 150)
qCurve.AddQuadraticCurveToPoint(138, 0, 238, 150)

g.PenSize = 10