TcxCanvas.AngleArc(Integer,Integer,Cardinal,Single,Single) Method
Draws a circular arc on the canvas and updates the pen position.
Declaration
procedure AngleArc(X: Integer; Y: Integer; ARadius: Cardinal; AStartAngle: Single; ASweepAngle: Single);
Parameters
Name | Type |
---|---|
X | Integer |
Y | Integer |
ARadius | Cardinal |
AStartAngle | Single |
ASweepAngle | Single |
Remarks
Call this procedure to draw a circular arc centered at the point whose coordinates are passed as the X and Y parameters. The AngleArc procedure draws a straight line from the current pen position to the arc start point. Then, the procedure draws an arc counterclockwise from the start to end point. Pass an arc’s radius in pixels as the Radius parameter.
The draw start and end point positions are intersections between the radius and a circle’s outline at the start and sweep angles. Pass these angles in degrees as the StartAngle and SweepAngle parameters, respectively. If the full arc angle is equal to or greater than 360, the AngleArc procedure draws a full circle.
Note
The AngleArc procedure uses the Pen settings to draw lines and moves the pen position to the draw end point.