PathF.AddArc Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| AddArc(PointF, PointF, Single, Single, Boolean) |
Adds an elliptical arc segment to the current sub-path. |
| AddArc(Single, Single, Single, Single, Single, Single, Boolean) |
Adds an elliptical arc segment using coordinate values instead of points. |
AddArc(PointF, PointF, Single, Single, Boolean)
- Source:
- PathF.cs
- Source:
- PathF.cs
- Source:
- PathF.cs
Adds an elliptical arc segment to the current sub-path.
public:
Microsoft::Maui::Graphics::PathF ^ AddArc(Microsoft::Maui::Graphics::PointF topLeft, Microsoft::Maui::Graphics::PointF bottomRight, float startAngle, float endAngle, bool clockwise);
public Microsoft.Maui.Graphics.PathF AddArc(Microsoft.Maui.Graphics.PointF topLeft, Microsoft.Maui.Graphics.PointF bottomRight, float startAngle, float endAngle, bool clockwise);
member this.AddArc : Microsoft.Maui.Graphics.PointF * Microsoft.Maui.Graphics.PointF * single * single * bool -> Microsoft.Maui.Graphics.PathF
Public Function AddArc (topLeft As PointF, bottomRight As PointF, startAngle As Single, endAngle As Single, clockwise As Boolean) As PathF
Parameters
- topLeft
- PointF
The top-left point of the rectangle that bounds the full ellipse from which the arc segment is taken.
- bottomRight
- PointF
The bottom-right point of the bounding rectangle of the ellipse.
- startAngle
- Single
Starting angle of the arc in degrees. 0° points to the right (along the positive X axis). Angles increase counter-clockwise.
- endAngle
- Single
Ending angle of the arc in degrees, measured with the same convention as startAngle.
- clockwise
- Boolean
If true, the arc is drawn in the clockwise direction from startAngle to endAngle; otherwise it is drawn counter-clockwise (the positive angle direction).
Returns
The current PathF so that calls can be chained fluently.
Remarks
Angle values are specified in degrees (not radians). The angular coordinate system used by Microsoft.Maui.Graphics for arcs is:
- 0° is the point on the ellipse at the positive X axis (to the right of center).
- Positive angles advance counter-clockwise.
- The direction of increasing Y on the drawing surface (often downwards in device pixels) does not change the counter-clockwise convention used for angles.
Applies to
AddArc(Single, Single, Single, Single, Single, Single, Boolean)
- Source:
- PathF.cs
- Source:
- PathF.cs
- Source:
- PathF.cs
Adds an elliptical arc segment using coordinate values instead of points.
public:
Microsoft::Maui::Graphics::PathF ^ AddArc(float x1, float y1, float x2, float y2, float startAngle, float endAngle, bool clockwise);
public Microsoft.Maui.Graphics.PathF AddArc(float x1, float y1, float x2, float y2, float startAngle, float endAngle, bool clockwise);
member this.AddArc : single * single * single * single * single * single * bool -> Microsoft.Maui.Graphics.PathF
Public Function AddArc (x1 As Single, y1 As Single, x2 As Single, y2 As Single, startAngle As Single, endAngle As Single, clockwise As Boolean) As PathF
Parameters
- x1
- Single
The X coordinate of the top-left corner of the bounding rectangle of the ellipse.
- y1
- Single
The Y coordinate of the top-left corner of the bounding rectangle of the ellipse.
- x2
- Single
The X coordinate of the bottom-right corner of the bounding rectangle of the ellipse.
- y2
- Single
The Y coordinate of the bottom-right corner of the bounding rectangle of the ellipse.
- startAngle
- Single
Starting angle of the arc in degrees. 0° points to the right (along the positive X axis). Angles increase counter-clockwise.
- endAngle
- Single
Ending angle of the arc in degrees, measured with the same convention as startAngle.
- clockwise
- Boolean
If true, the arc is drawn in the clockwise direction from startAngle to endAngle; otherwise it is drawn counter-clockwise (the positive angle direction).
Returns
The current path for chaining.