[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws a filled ellipse (or circle) on the canvas.
Source position: graphics.pp line 1121
public procedure TCanvas.Ellipse( |
const ARect: TRect |
); |
x1: Integer; |
y1: Integer; |
x2: Integer; |
y2: Integer |
); virtual; |
ARect |
|
TRect instance with the bounds for the shape. |
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. |
Ellipse is an overloaded, reintroduced method in TCanvas used to draw a filled ellipse shape. The overloaded variants allow the shape to be defined either as a rectangular area where the shape is drawn, or by using Integer coordinates to establish the major and minor axis for the shape.
ARect is the TRect instance with the bounds for the shape.
x1, y1, x2, and y2 allows the bounds for the shape to be specified as Integer values.
The bounds are used to calculate the vertex, co-vertex, linear eccentricity and focal points for the shape.
When the bounds area is a square, the resulting shape is a circle.
Ellipse calls the Ellipse routine in the LCL interface to perform the drawing operation.
|
Draws a filled circle or ellipse, bounded by a rectangle. |
Version 3.2 | Generated 2024-02-25 | Home |