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

TfpgCanvasBase.FillArc

Draws a filled arc shape

Declaration

Source position: fpg_base.pas line 393

public procedure TfpgCanvasBase.FillArc(

  x: TfpgCoord;

  y: TfpgCoord;

  w: TfpgCoord;

  h: TfpgCoord;

  a1: Double;

  a2: Double

);

Description

Draws a filled arc shape. It uses the TfpgCanvas.Color value to draw and fill 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.DrawArc

  

Draws an outline arc shape

Example

{ This will draw a red filled arc, starting at the 6 o'clock position, and
  drawing 45 degrees of the arc, ending at the half-past-four position. }
procedure TMainForm.FormPaint;  // the form's OnPaint event handler. 
begin
  Canvas.Color := clRed;
  Canvas.FillArc(5, 5, 100, 100, 270, 45);
end;


Documentation generated on: 2015-04-04