Sign in Join
FPDoc Onlineexperiment

TPostScriptPrinterCanvas.Arc procedure

Member of TPostScriptPrinterCanvaspublicIn unit PostScriptCanvas

Declaration

pascal
procedure Arc(Left: Integer; Top: Integer; Right: Integer; 
 Bottom: Integer; angle1: Integer; angle2: Integer)
 ; override
procedure Arc(x: Integer; y: Integer; Right: Integer; Bottom: Integer; 
 SX: Integer; SY: Integer; EX: Integer; EY: Integer)
 ; override

Description

Not described here; this is what TCanvas.Arc says of it:

Use Arc to draw an elliptically curved line with the current Pen.

Use Arc to draw an elliptically curved line with the current Pen. Arc is re-introduced in TCanvas to provide additional overloads for the method found in the platform-specific LCL interface object. Parameter values passed to the overloaded methods are in turn passed to the widgetset class for the platform.

ALeft, ATop, ABottom, and ARight define the rectangle which encloses the full ellipse from which a part is drawn as arc.

One variant of the method provides the Angle16Deg and Angle16DegLength arguments.

Angle16Deg contains the angle at which the arc begins. Zero degrees lies at the 3 o'clock position. Positive values indicate a counter-clockwise direction to the start point. The angle is expressed in units of 1/16th of a degress.

Angle16DegLength contains the arc length expressed in 1/16ths degrees. For example, a full circle would be represented by the value 5760 (=16*360). A positive value indicates that the arc runs in counter-clockwise direction, a negative value means clockwise direction.

Another variant provides the SX, SY and EX, EY arguments representing the starting and ending radial points between which the Arc is drawn. These points do not necessarily need to be on the ellipse outline. The Arc begins and ends at the intersection between the ellipse and the straight lines between the ellipse center and the points (SX,SY) and (EX,EY), respectively.

Drawing methods which reintroduce those in the TFPCustomCanvas ancestor class were added in LCL version 2.6.1.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.