FMX.Objects.TEllipse

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Objects.TShapeFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTEllipse

Delphi

TEllipse = class(TShape)

C++

class PASCALIMPLEMENTATION TEllipse : public TShape

Properties

Type Visibility Source Unit Parent
class public
FMX.Objects.pas
FMX.Objects.hpp
FMX.Objects FMX.Objects

Description

TEllipse defines 2D ellipses. It inherits TControl and can be used in styles to construct controls.

The following TEllipse properties define the ellipse shape and position:

  1. Initially the ellipse is inscribed into the bounding rectangle ShapeRect of the TEllipse object.
  2. Then the rotation axis RotationCenter is moved along the local coordinate axes proportionally to the Scale factors.
  3. Then this ellipse is rotated around the obtained pivot on the RotationAngle angle.
Note: Scaling not only scales the shape of an object proportionally to the scaling factors. It also changes the thickness of the stroke that draws the contour proportionally to the scaling factor for each axis.

TEllipse draws the contour and fills the background with the Paint method.

Paint draws the contour and fills the background using the drawing pen and brush with the properties, color, and opacity defined by the Stroke and Fill properties of the TEllipse object.

See Also

Code Examples