TCanvas.Ellipse procedure
Draws a filled ellipse (or circle) on the canvas.
Declaration
procedure Ellipse(const ARect: TRect); reintroduce
procedure Ellipse(x1: Integer; y1: Integer; x2: Integer; y2: Integer)
; virtual; reintroduceArguments
ARect | TRect instance with the bounds for the enclosing rectangle. |
x1 | Left coordinate for the bounding box. |
y1 | Top coordinate for the bounding box. |
x2 | Right coordinate for the bounding box. |
y2 | Bottom coordinate for the bounding box. |
Description
Ellipse is an overloaded, reintroduced method in TCanvas used to
draw a filled ellipse shape. The ellipse is not rotated and has its axes along
the x and y axes. It is defined by means of the enclosing rectangle which can
either be passed as a
TRect parameter or as four separate integer
coordinates.
ARect is the TRect instance with the bounds for the enclosing rectangle.
x1, y1, x2, and y2 allows the bounds for the enclosing rectangle to be specified separately as Integer values.
The bounds are used to calculate the vertex, co-vertex, linear eccentricity and focal points for the shape.
When the bounding rectangle is a square, the resulting shape is a circle.
Ellipse calls the Ellipse routine in the LCL interface to perform the drawing operation.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
