FMX.Graphics.TCanvas.DrawArc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DrawArc(const Center, Radius: TPointF; StartAngle, SweepAngle: Single; const AOpacity: Single); overload;
procedure DrawArc(const Center, Radius: TPointF; StartAngle, SweepAngle: Single; const AOpacity: Single; const ABrush: TStrokeBrush); overload;

C++

void __fastcall DrawArc(const System::Types::TPointF &Center, const System::Types::TPointF &Radius, float StartAngle, float SweepAngle, const float AOpacity)/* overload */;
void __fastcall DrawArc(const System::Types::TPointF &Center, const System::Types::TPointF &Radius, float StartAngle, float SweepAngle, const float AOpacity, TStrokeBrush* const ABrush)/* overload */;

Properties

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

Description

Draws an arc as the part of an ellipse contour on the TCanvas.

The arc is created as a path containing the part of an ellipse contour. DrawArc draws this path on the current TCanvas with the current Stroke parameters.

The Center parameter specifies the center of the 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

The AOpacity parameter specifies the transparency of the Stroke color.

To customize the drawing pen, use the Stroke, StrokeThickness, StrokeCap, StrokeDash, and StrokeJoin properties.

See Also

Code Examples