Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSVclCommon > RSGraphics > Classes > TRSPathData > Methods

TRSPathData.CurveToRel(TRSPoint,TRSPoint,TRSPoint) Method

Scroll Prev Top Next More

Appends a curve to the current TRSPathData.

The 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.

The ControlPoint1 and ControlPoint2 parameters' coordinates specify the distances to the end point of the current TRSPathData, on each axis, for each of the two control points of the curve.

The EndPoint parameter's coordinates specify the distances to the end point of the current TRSPathData, on each axis, for the end point of the curve.

CurveToRel adds the control points and the end point of the curve to the Points array. The coordinates for each added point are equal to the sum between the coordinates of the last point and the coordinates of the corresponding point 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 CurveToRel.

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

Namespace: RSGraphics

Parameters

ControlPoint1

Type: System.Void

ControlPoint2

Type: System.Void

EndPoint

Type: System.Void

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb