FMX.Objects.TEllipse
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:
- Initially the ellipse is inscribed into the bounding rectangle ShapeRect of the TEllipse object.
- Then the rotation axis RotationCenter is moved along the local coordinate axes proportionally to the Scale factors.
- 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
- FMX.Objects.TCircle
- FMX.Objects.TArc
- FMX.Objects.TPie
- FMX.Objects.TShape.Stroke
- FMX.Objects.TShape.Fill