Vcl.Graphics.TCustomCanvas.Ellipse
Delphi
procedure Ellipse(X1, Y1, X2, Y2: Integer); overload; virtual; abstract;
procedure Ellipse(const Rect: TRect); overload;
C++
virtual void __fastcall Ellipse(int X1, int Y1, int X2, int Y2) = 0 /* overload */;
void __fastcall Ellipse(const Winapi::Windows::TRect &Rect)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TCustomCanvas |
Description
Draws the ellipse defined by a bounding rectangle on the canvas.
Override the Ellipse method to implement drawing a circle or ellipse on the canvas. Specify the bounding rectangle either by giving:
- The top left point at pixel coordinates (X1, Y1) and the bottom right point at (X2, Y2).
- A TRect value.
If the bounding rectangle is a square, a circle is drawn.