FMX.Graphics.TPathData.LineTo

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure LineTo(const P: TPointF);

C++

void __fastcall LineTo(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 specified point.

The P parameter specifies the end point of the line to be added.

To move the start point of the line, call MoveTo or MoveToRel before calling LineTo.

LineTo adds P to Points. The added point is of type LineTo.

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

Code Examples