Vcl.Graphics.TCustomCanvas.LineTo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LineTo(X, Y: Integer); virtual; abstract;

C++

virtual void __fastcall LineTo(int X, int Y) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCustomCanvas

Description

Draws a line on the canvas from PenPos to the point specified by X and Y, and sets the pen position to (X, Y).

Override the LineTo method to implement drawing a line from PenPos up to, but not including the point (X,Y). LineTo changes the value of PenPos to (X,Y).

See Also