Appends a smooth curve to the current path.
The smooth curve is defined by 4 points that depend on the last point of the current:
• A start point--the last point of the path.
• If Points has more than 2 items, the first control point coincides with the start point, otherwise it is equal to the second control point. The ControlPoint2 parameter's coordinates specify the distances to the last point of the current path, on each axis, for the second control point of the curve.
• The EndPoint parameter's coordinates specify the distances to the last point of the current path, on each axis, for the end point of the curve.
SmoothCurveToRel adds the control points and the end point of the curve to the Points array. The added point is of type CurveTo. The coordinates for each point are equal to the sum between the coordinates of the last point of the current path and the coordinates of the corresponding points specified by the parameters. To move the start point of the line, call MoveTo or MoveToRel before calling SmoothCurveToRel.
To find the end point of the path, call the
The function returns the current path so that you can chain together commands, e.g., aPath.MoveTo(PointF(50,50)).LineTo(PointF(100,100).AddPolygon(Polygon1).AddEllipse(RectF(10,10,200,100));