[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws a line
Source position: fpg_base.pas line 382
public procedure TfpgCanvasBase.DrawLine( |
x1: TfpgCoord; |
y1: TfpgCoord; |
x2: TfpgCoord; |
y2: TfpgCoord |
); |
Draws a line. This method draws a line from (x1,y1) to (x2,y2), but does not draw the last pixel. All supported backends follow the Microsoft API and doesn't draw the last pixel. This optimises consecutive lines being drawn without overlapping pixels.