TEllipse = class(TShape)
class PASCALIMPLEMENTATION TEllipse : public TShape
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, 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.