Hide Comments
Hide Comments

TRSGPPath.SmoothCurveToRel(TPointF,TPointF) Method

Comments (0)

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  LastPoint method.
 

Namespace: RSGdiPlusGraphics

expandingSyntax

Parameters

ControlPoint2

Type: TPointF

EndPoint

Type: TPointF

Return Value

Type: TRSGPPath

expandingRemarks
expandingSee Also

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2016, Thomas G. Grubb