FMX.Graphics.TPathData.LineToRel
Delphi
procedure LineToRel(const P: TPointF);
C++
void __fastcall LineToRel(const System::Types::TPointF &P);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TPathData |
Description
Appends a line to the current TPathData.
The line is defined by the end point of the TPathData and a point that depends on the point specified by the parameter.
The P
parameter's coordinates specify the distances to the last point of the current TPathData, on each axis.
LineToRel adds the end point of the line to the Points array. Its coordinates are equal to the sum between the coordinates of the last point and the coordinates of P
. The added point is of type LineTo.
To move the start point of the line, call the MoveTo or MoveToRel method before calling LineToRel.
To find the end point of the TPathData, call the LastPoint method.
To see the difference between the results of LineTo and LineToRel, see the following table:
Initial Path | LineTo(PointF(a,b)) Result | LineToRel(PointF(a,b)) Result |
---|---|---|
See Also
- FMX.Graphics.TPathData.Points
- FMX.Graphics.TPathPointKind
- FMX.Graphics.TPathData.ClosePath
- FMX.Graphics.TPathData.CurveTo
- FMX.Graphics.TPathData.CurveToRel
- FMX.Graphics.TPathData.HLineTo
- FMX.Graphics.TPathData.HLineToRel
- FMX.Graphics.TPathData.LineTo
- FMX.Graphics.TPathData.LastPoint
- FMX.Graphics.TPathData.MoveTo
- FMX.Graphics.TPathData.MoveToRel
- FMX.Graphics.TPathData.SmoothCurveTo
- FMX.Graphics.TPathData.SmoothCurveToRel
- FMX.Graphics.TPathData.VLineTo
- FMX.Graphics.TPathData.VLineToRel