[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws an outline arc shape
Source position: fpg_base.pas line 382
public procedure TfpgCanvasBase.DrawArc( |
x: TfpgCoord; |
y: TfpgCoord; |
w: TfpgCoord; |
h: TfpgCoord; |
a1: Double; |
a2: Double |
); |
Draws an outline arc shape. It uses the TfpgCanvas.Color value to draw the arc.
|
Draws a filled arc shape |
{ This will draw a red arc, starting at the 6 o'clock position, and drawing 90 degrees of the arc, ending at the 3 o'clock position. } procedure TMainForm.FormPaint; // the forms OnPaint event handler begin Canvas.Color := clRed; Canvas.DrawArc(5, 5, 100, 100, 270, 90); end;