FMX.Graphics.TCanvas.DrawArc
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.
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
- FMX.Graphics.TCanvas.DrawBitmap
- FMX.Graphics.TCanvas.DrawEllipse
- FMX.Graphics.TCanvas.DrawLine
- FMX.Graphics.TCanvas.DrawPath
- FMX.Graphics.TCanvas.DrawPolygon
- FMX.Graphics.TCanvas.DrawRect
- FMX.Graphics.TCanvas.DrawRectSides
- FMX.Graphics.TCanvas.FillArc
- FMX.Graphics.TCanvas.Stroke
- FMX.Graphics.TCanvas.StrokeThickness
- FMX.Graphics.TCanvas.StrokeCap
- FMX.Graphics.TCanvas.StrokeDash
- FMX.Graphics.TCanvas.StrokeJoin
- FMX.Graphics.TPathData