Modifier

Partager via


SKPath.ArcTo Method

Definition

Overloads

ArcTo(SKPoint, SKPoint, Single)

Appends a line and arc to the current path.

ArcTo(SKRect, Single, Single, Boolean)

Appends the specified arc to the path.

ArcTo(SKPoint, Single, SKPathArcSize, SKPathDirection, SKPoint)

Appends an elliptical arc from the current point in the format used by SVG.

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

Appends a line and arc to the current path.

ArcTo(Single, Single, Single, SKPathArcSize, SKPathDirection, Single, Single)

Appends an elliptical arc from the current point in the format used by SVG.

ArcTo(SKPoint, SKPoint, Single)

Appends a line and arc to the current path.

public void ArcTo (SkiaSharp.SKPoint point1, SkiaSharp.SKPoint point2, float radius);

Parameters

point1
SKPoint

The corner coordinates.

point2
SKPoint

The destination coordinates.

radius
Single

The corner radius.

Remarks

This is the same as the PostScript call "arct".

Applies to

ArcTo(SKRect, Single, Single, Boolean)

Appends the specified arc to the path.

public void ArcTo (SkiaSharp.SKRect oval, float startAngle, float sweepAngle, bool forceMoveTo);

Parameters

oval
SKRect

The bounding oval defining the shape and size of the arc.

startAngle
Single

The starting angle (in degrees) where the arc begins.

sweepAngle
Single

The sweep angle (in degrees) measured clockwise.

forceMoveTo
Boolean

Whether to always begin a new contour with the arc.

Remarks

If the start of the arc 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.

Applies to

ArcTo(SKPoint, Single, SKPathArcSize, SKPathDirection, SKPoint)

Appends an elliptical arc from the current point in the format used by SVG.

public void ArcTo (SkiaSharp.SKPoint r, float xAxisRotate, SkiaSharp.SKPathArcSize largeArc, SkiaSharp.SKPathDirection sweep, SkiaSharp.SKPoint xy);

Parameters

r
SKPoint

The radius.

xAxisRotate
Single

The angle in degrees relative to the x-axis.

largeArc
SKPathArcSize

Determines whether the smallest or largest arc possible is drawn.

sweep
SKPathDirection

Determines if the arc should be swept in an anti-clockwise or clockwise direction.

xy
SKPoint

The destination coordinate.

Applies to

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

Appends a line and arc to the current path.

public void ArcTo (float x1, float y1, float x2, float y2, float radius);

Parameters

x1
Single

The corner x-coordinate.

y1
Single

The corner y-coordinate.

x2
Single

The destination x-coordinate.

y2
Single

The destination y-coordinate.

radius
Single

The corner radius.

Remarks

This is the same as the PostScript call "arct".

Applies to

ArcTo(Single, Single, Single, SKPathArcSize, SKPathDirection, Single, Single)

Appends an elliptical arc from the current point in the format used by SVG.

public void ArcTo (float rx, float ry, float xAxisRotate, SkiaSharp.SKPathArcSize largeArc, SkiaSharp.SKPathDirection sweep, float x, float y);

Parameters

rx
Single

The radius in the x-direction.

ry
Single

The radius in the y-direction.

xAxisRotate
Single

The angle in degrees relative to the x-axis.

largeArc
SKPathArcSize

Determines whether the smallest or largest arc possible is drawn.

sweep
SKPathDirection

Determines if the arc should be swept in an anti-clockwise or clockwise direction.

x
Single

The destination x-coordinate.

y
Single

The destination y-coordinate.

Applies to