Vcl.Graphics.TCanvas.Ellipse
Delphi
procedure Ellipse(X1, Y1, X2, Y2: Integer); override;
C++
virtual void __fastcall Ellipse(int X1, int Y1, int X2, int Y2)/* overload */;
inline void __fastcall Ellipse(const System::Types::TRect &Rect){ TCustomCanvas::Ellipse(Rect); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TCanvas |
Description
Draws the ellipse defined by a bounding rectangle on the canvas.
Call Ellipse to draw 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.The ellipse is outlined using the value of Pen, and filled using the value of Brush.
Note: On Windows 9x or Windows ME, the sums X1 + X2 and Y1 + Y2 cannot exceed 32768. Also, the sum X1 + X2 + Y1 + Y2 cannot exceed 32768.
See Also
Code Examples