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

TfpgCanvasBase.DrawArc

Draws an outline arc shape

Declaration

Source position: fpg_base.pas line 382

public procedure TfpgCanvasBase.DrawArc(

  x: TfpgCoord;

  y: TfpgCoord;

  w: TfpgCoord;

  h: TfpgCoord;

  a1: Double;

  a2: Double

);

Description

Draws an outline arc shape. It uses the TfpgCanvas.Color value to draw the arc.

x
The left x co-ordinate of the arc drawing position
y
The top y co-ordinate of the arc drawing position
w
The width of the whole arc
h
The height of the whole arc
a1
This is the starting point of the arc. A value of 0 is the 3 o'clock position. A value of 270 is the 6 o'clock position. Positive values move counter-clockwise, and negative values move clockwise.
a2
This parameter is the length of the arc in degrees. A positive value goes counter-clockwise, and a negative values goes clockwise.

See also

TfpgCanvasBase.FillArc

  

Draws a filled arc shape

Example

{ 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;

Documentation generated on: 2015-04-04