Show: Delphi C++
Display Preferences

FMX.Graphics.TPathData.LineToRel

From RAD Studio API Documentation
Jump to: navigation, search

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

FMXTypesTPathDataInitialPath.PNG

FMXTypesTPathDataLineTo.PNG

FMXTypesTPathDataLineToRel.PNG

See Also

Personal tools
In Other Languages
Previous Versions
Assistance