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

TCanvas.Chord

Chord draws a filled Chord-shape on the canvas

Declaration

Source position: line 0

public procedure TCanvas.Chord(

  x1: Integer;

  y1: Integer;

  x2: Integer;

  y2: Integer;

  Angle16Deg: Integer;

  Angle16DegLength: Integer

); virtual;

procedure TCanvas.Chord(

  x1: Integer;

  y1: Integer;

  x2: Integer;

  y2: Integer;

  SX: Integer;

  SY: Integer;

  EX: Integer;

  EY: Integer

); virtual;

Description

Method: TCanvas.Chord
Params: x1, y1, x2, y2, StartAngle16Deg, EndAngle16Deg
Returns: Nothing

Use Chord to draw a filled Chord-shape on the canvas. The angles angle1 and angle2 are 1/16th of a degree. For example, a full circle equals 5760(16*360).
Positive values of Angle and AngleLength mean counter-clockwise while negative values mean clockwise direction.
Zero degrees is at the 3 o'clock position.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.