CanvasExtensions.DrawArc Method

Definition

Overloads

DrawArc(ICanvas, Rect, Single, Single, Boolean, Boolean)

Draws the arc. This is a helper method to draw an arc when you have a rectangle already defined for the ellipse bounds.

DrawArc(ICanvas, RectF, Single, Single, Boolean, Boolean)

Draws the arc. This is a helper method to draw an arc when you have a rectangle already defined for the ellipse bounds.

DrawArc(ICanvas, Rect, Single, Single, Boolean, Boolean)

Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs

Draws the arc. This is a helper method to draw an arc when you have a rectangle already defined for the ellipse bounds.

public static void DrawArc (this Microsoft.Maui.Graphics.ICanvas canvas, Microsoft.Maui.Graphics.Rect bounds, float startAngle, float endAngle, bool clockwise, bool closed);

Parameters

canvas
ICanvas

canvas

bounds
Rect

The ellipse bounds.

startAngle
Single

The start angle

endAngle
Single

The end angle

clockwise
Boolean

The direction to draw the arc

closed
Boolean

If the arc is closed or not

Applies to

.NET MAUI 9 and .NET MAUI 8
Product Versions
.NET MAUI 8, 9

DrawArc(ICanvas, RectF, Single, Single, Boolean, Boolean)

Source:
CanvasExtensions.cs
Source:
CanvasExtensions.cs

Draws the arc. This is a helper method to draw an arc when you have a rectangle already defined for the ellipse bounds.

public static void DrawArc (this Microsoft.Maui.Graphics.ICanvas canvas, Microsoft.Maui.Graphics.RectF bounds, float startAngle, float endAngle, bool clockwise, bool closed);

Parameters

canvas
ICanvas

canvas

bounds
RectF

The ellipse bounds.

startAngle
Single

The start angle

endAngle
Single

The end angle

clockwise
Boolean

The direction to draw the arc

closed
Boolean

If the arc is closed or not

Applies to

.NET MAUI 9 and .NET MAUI 8
Product Versions
.NET MAUI 8, 9