Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCommon > FMX.RS.Graphics > Classes > TRSPathData > Methods

TRSPathData.SmoothCurveToRel(TRSPoint,TRSPoint) Method

Scroll Prev Top Next More

Appends a smooth curve to the current TRSPathData.

The smooth curve is defined by 4 points that depend on the last point of the current TRSPathData.

The start point of the curve is the end point of the TRSPathData.

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 TRSPathData, 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 TRSPathData, 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 coordinates for each point are equal to the sum between the coordinates of the last point of the current TRSPathData and the coordinates of the corresponding points specified by the parameters. The added points are of type ppCurveTo.

To move the start point of the curve, call the  MoveTo or  MoveToRel method before calling SmoothCurveToRel.

To find the end point of the TRSPathData, call the  LastPoint method.

Namespace: FMX.RS.Graphics

Parameters

ControlPoint2

Type: System.Void

EndPoint

Type: System.Void

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb