From RAD Studio API Documentation
Jump to: navigation, search


procedure LineTo(X, Y: Integer); override;


Type Visibility Source Unit Parent
procedure public Vcl.Direct2D.pas Vcl.Direct2D TDirect2DCanvas


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

Use LineTo to draw a line from PenPos up to, but not including the point (X,Y). LineTo changes the value of PenPos to (X,Y). The line is drawn using Pen.

Note: If the current Pen does not have a style of psSolid, the line is drawn with a background specified by the current brush.

See Also