[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'fpg_base' (#fpgui)

TfpgCanvasBase.DrawLine

Draws a line

Declaration

Source position: fpg_base.pas line 359

public procedure TfpgCanvasBase.DrawLine(

  x1: TfpgCoord;

  y1: TfpgCoord;

  x2: TfpgCoord;

  y2: TfpgCoord

);

Description

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.


Documentation generated on: 2012-01-26