Vcl.Direct2D.TDirect2DCanvas.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){ Vcl::Graphics::TCustomCanvas::Ellipse(Rect); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Direct2D.pas Vcl.Direct2D.hpp |
Vcl.Direct2D | TDirect2DCanvas |
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 in one of the following ways:
- Giving four coordinates that define the upper-left corner at the point (X1, Y1) and the lower-right corner at the point (X2, Y2).
- Using a TRect type.
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.