編輯

共用方式為


SKPath.CubicTo Method

Definition

Overloads

CubicTo(Single, Single, Single, Single, Single, Single)

Adds a cubic bezier from the last point.

CubicTo(SKPoint, SKPoint, SKPoint)

Adds a cubic bezier from the last point.

CubicTo(Single, Single, Single, Single, Single, Single)

Adds a cubic bezier from the last point.

public void CubicTo (float x0, float y0, float x1, float y1, float x2, float y2);

Parameters

x0
Single

The x-coordinate of the 1st control point on a cubic curve.

y0
Single

The y-coordinate of the 1st control point on a cubic curve.

x1
Single

The x-coordinate of the 2nd control point on a cubic curve.

y1
Single

The y-coordinate of the 2nd control point on a cubic curve.

x2
Single

The x-coordinate of the end point on a cubic curve.

y2
Single

The y-coordinate of the end point on a cubic curve.

Remarks

If no MoveTo call has been made for this contour, the first point is automatically set to (0, 0).

Applies to

CubicTo(SKPoint, SKPoint, SKPoint)

Adds a cubic bezier from the last point.

public void CubicTo (SkiaSharp.SKPoint point0, SkiaSharp.SKPoint point1, SkiaSharp.SKPoint point2);

Parameters

point0
SKPoint

The coordinates of the 1st control point on a cubic curve.

point1
SKPoint

The coordinates of the 2nd control point on a cubic curve.

point2
SKPoint

The coordinates of the end point on a cubic curve.

Remarks

If no MoveTo call has been made for this contour, the first point is automatically set to (0, 0).

Applies to