共用方式為


Path.ArcTo Method

Definition

Overloads

ArcTo(RectF, Single, Single)

Append the specified arc to the path as a new contour.

ArcTo(RectF, Single, Single, Boolean)

Append the specified arc to the path as a new contour.

ArcTo(Single, Single, Single, Single, Single, Single, Boolean)

Append the specified arc to the path as a new contour.

ArcTo(RectF, Single, Single)

Append the specified arc to the path as a new contour.

[Android.Runtime.Register("arcTo", "(Landroid/graphics/RectF;FF)V", "GetArcTo_Landroid_graphics_RectF_FFHandler")]
public virtual void ArcTo (Android.Graphics.RectF oval, float startAngle, float sweepAngle);
[<Android.Runtime.Register("arcTo", "(Landroid/graphics/RectF;FF)V", "GetArcTo_Landroid_graphics_RectF_FFHandler")>]
abstract member ArcTo : Android.Graphics.RectF * single * single -> unit
override this.ArcTo : Android.Graphics.RectF * single * single -> unit

Parameters

oval
RectF

The bounds of oval defining shape and size of the arc

startAngle
Single

Starting angle (in degrees) where the arc begins

sweepAngle
Single

Sweep angle (in degrees) measured clockwise

Attributes

Remarks

Append the specified arc to the path as a new contour. If the start of the path is different from the path's current last point, then an automatic lineTo() is added to connect the current contour to the start of the arc. However, if the path is empty, then we call moveTo() with the first point of the arc.

Java documentation for android.graphics.Path.arcTo(android.graphics.RectF, float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ArcTo(RectF, Single, Single, Boolean)

Append the specified arc to the path as a new contour.

[Android.Runtime.Register("arcTo", "(Landroid/graphics/RectF;FFZ)V", "GetArcTo_Landroid_graphics_RectF_FFZHandler")]
public virtual void ArcTo (Android.Graphics.RectF oval, float startAngle, float sweepAngle, bool forceMoveTo);
[<Android.Runtime.Register("arcTo", "(Landroid/graphics/RectF;FFZ)V", "GetArcTo_Landroid_graphics_RectF_FFZHandler")>]
abstract member ArcTo : Android.Graphics.RectF * single * single * bool -> unit
override this.ArcTo : Android.Graphics.RectF * single * single * bool -> unit

Parameters

oval
RectF

The bounds of oval defining shape and size of the arc

startAngle
Single

Starting angle (in degrees) where the arc begins

sweepAngle
Single

Sweep angle (in degrees) measured clockwise, treated mod 360.

forceMoveTo
Boolean

If true, always begin a new contour with the arc

Attributes

Remarks

Append the specified arc to the path as a new contour. If the start of the path is different from the path's current last point, then an automatic lineTo() is added to connect the current contour to the start of the arc. However, if the path is empty, then we call moveTo() with the first point of the arc.

Java documentation for android.graphics.Path.arcTo(android.graphics.RectF, float, float, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ArcTo(Single, Single, Single, Single, Single, Single, Boolean)

Append the specified arc to the path as a new contour.

[Android.Runtime.Register("arcTo", "(FFFFFFZ)V", "GetArcTo_FFFFFFZHandler")]
public virtual void ArcTo (float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool forceMoveTo);
[<Android.Runtime.Register("arcTo", "(FFFFFFZ)V", "GetArcTo_FFFFFFZHandler")>]
abstract member ArcTo : single * single * single * single * single * single * bool -> unit
override this.ArcTo : single * single * single * single * single * single * bool -> unit

Parameters

left
Single
top
Single
right
Single
bottom
Single
startAngle
Single

Starting angle (in degrees) where the arc begins

sweepAngle
Single

Sweep angle (in degrees) measured clockwise, treated mod 360.

forceMoveTo
Boolean

If true, always begin a new contour with the arc

Attributes

Remarks

Append the specified arc to the path as a new contour. If the start of the path is different from the path's current last point, then an automatic lineTo() is added to connect the current contour to the start of the arc. However, if the path is empty, then we call moveTo() with the first point of the arc.

Java documentation for android.graphics.Path.arcTo(float, float, float, float, float, float, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to