FMX.Graphics.TPathData.AddArc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AddArc(const Center, Radius: TPointF; StartAngle, SweepAngle: Single);

C++

void __fastcall AddArc(const System::Types::TPointF &Center, const System::Types::TPointF &Radius, float StartAngle, float SweepAngle);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TPathData

Description

Appends an arc to the current TPathData as the part of an ellipse contour.

The Center parameter specifies the center of the parent ellipse.

The coordinates of the Radius parameter specify the semi-axes of the parent ellipse:

  • Radius.x defines the x-semi-axis.
  • Radius.y defines the y-semi-axis.

StartAngle specifies the angle, in degrees, measured clockwise, from the x-axis to the line passing through the Center point of the ellipse and intersects the ellipse in the starting point of the arc.

SweepAngle specifies the angle, in degrees, measured clockwise, from the StartAngle parameter to the line passing through the Center point of the ellipse and intersects the ellipse in the ending point of the arc.

DrawArc.png

If there are previous lines or curves in the current TPathData, a line is added to connect the last point of the previous segment to the start point of the arc.

To move the start point of the arc, call MoveTo or MoveToRel before calling AddArc.

AddArc splits the arc in simple figures and adds to Points the points needed to represent them. The added points have different types.

To find the last point of the TPathData, call the LastPoint method.

See Also