From Appmethod Libraries
Jump to: navigation, search


Object Pascal

TEllipse = class(TShape)


class PASCALIMPLEMENTATION TEllipse : public TShape


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


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, but also changes the StrokeThickness of 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, StrokeThickness, StrokeCap, StrokeDash, StrokeJoin, and Fill properties of the TEllipse object.

See Also

Code Examples