AngleChord function
Draws a filled Chord described by two angles.
Declaration
function AngleChord(DC: HDC; x1: Integer; y1: Integer; x2: Integer;
y2: Integer; angle1: Integer; angle2: Integer)
: BooleanArguments
DC | |
x1 | |
y1 | |
x2 | |
y2 | |
angle1 | The starting angle in 1/16 degrees, starting right and continuing counter-clockwise. |
angle2 | The ending angle in 1/16 degrees, starting right and continuing counter-clockwise. |
Function result
False on failure.Description
AngleChord is a Lazarus addition, similar to the Windows API Chord, but uses angles to control the location of the chord inside the ellipse instead of two points like the Windows API Chord.
A Chord is a section of an ellipse between two angles (angle1 and angle2), closed by a straight line (secant). It's equivalent to a Pie without the triangle between the arc and the center of the ellipse.
The curve part of the chord is defined by the ellipse which fits in the bounding rectangle specified by the coordinates x1, y1, x2 and y2.
The Chord is outlined by the current Pen and filled with the current Brush.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
