Path.ConicTo(Single, Single, Single, Single, Single) Method

Definition

Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2), weighted by weight.

[Android.Runtime.Register("conicTo", "(FFFFF)V", "GetConicTo_FFFFFHandler", ApiSince=34)]
public virtual void ConicTo (float x1, float y1, float x2, float y2, float weight);
[<Android.Runtime.Register("conicTo", "(FFFFF)V", "GetConicTo_FFFFFHandler", ApiSince=34)>]
abstract member ConicTo : single * single * single * single * single -> unit
override this.ConicTo : single * single * single * single * single -> unit

Parameters

x1
Single

The x-coordinate of the control point on a conic curve

y1
Single

The y-coordinate of the control point on a conic curve

x2
Single

The x-coordinate of the end point on a conic curve

y2
Single

The y-coordinate of the end point on a conic curve

weight
Single

The weight of the conic applied to the curve. A value of 1 is equivalent to a quadratic with the given control and anchor points and a value of 0 is equivalent to a line to the first and another line to the second point.

Attributes

Remarks

Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2), weighted by weight. If no moveTo() call has been made for this contour, the first point is automatically set to (0,0).

A weight of 1 is equivalent to calling #quadTo(float, float, float, float). A weight of 0 is equivalent to calling #lineTo(float, float) to (x1, y1) followed by #lineTo(float, float) to (x2, y2).

Java documentation for android.graphics.Path.conicTo(float, float, float, 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