Android.Graphics.Canvas.DrawArc Method

Syntax

[Android.Runtime.Register("drawArc", "(FFFFFFZLandroid/graphics/Paint;)V", "GetDrawArc_FFFFFFZLandroid_graphics_Paint_Handler")]
public virtual void DrawArc (float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, Paint paint)

Parameters

left
Documentation for this section has not yet been entered.
top
Documentation for this section has not yet been entered.
right
Documentation for this section has not yet been entered.
bottom
Documentation for this section has not yet been entered.
startAngle
Starting angle (in degrees) where the arc begins
sweepAngle
Sweep angle (in degrees) measured clockwise
useCenter
If true, include the center of the oval in the arc, and close it if it is being stroked. This will draw a wedge
paint
The paint used to draw the arc

Remarks

Draw the specified arc, which will be scaled to fit inside the specified oval.

If the start angle is negative or >= 360, the start angle is treated as start angle modulo 360.

If the sweep angle is >= 360, then the oval is drawn completely. Note that this differs slightly from SkPath::arcTo, which treats the sweep angle modulo 360. If the sweep angle is negative, the sweep angle is treated as sweep angle modulo 360

The arc is drawn clockwise. An angle of 0 degrees correspond to the geometric angle of 0 degrees (3 o'clock on a watch.)

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1