iOSPath.AddQuadraticCurveToPoint

From Xojo Documentation

Method

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

Supported on Mobile(iOS).

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

Parameters

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 iOSPath
qCurve.MoveToPoint(38, 150)
qCurve.AddQuadraticCurveToPoint(138, 0, 238, 150)

g.LineWidth = 10
g.DrawPath(qCurve)