Freigeben über


PathIterator.Next Method

Definition

Overloads

Next()
Next(Single[], Int32)

Returns the next verb in this iterator's Path, and fills entries in the points array with the point data (if any) for that operation.

Next()

[Android.Runtime.Register("next", "()Landroid/graphics/PathIterator$Segment;", "GetNextHandler", ApiSince=34)]
public virtual Android.Graphics.PathIterator.Segment Next ();
[<Android.Runtime.Register("next", "()Landroid/graphics/PathIterator$Segment;", "GetNextHandler", ApiSince=34)>]
abstract member Next : unit -> Android.Graphics.PathIterator.Segment
override this.Next : unit -> Android.Graphics.PathIterator.Segment

Returns

Attributes

Applies to

Next(Single[], Int32)

Returns the next verb in this iterator's Path, and fills entries in the points array with the point data (if any) for that operation.

[Android.Runtime.Register("next", "([FI)I", "GetNext_arrayFIHandler", ApiSince=34)]
public virtual int Next (float[] points, int offset);
[<Android.Runtime.Register("next", "([FI)I", "GetNext_arrayFIHandler", ApiSince=34)>]
abstract member Next : single[] * int -> int
override this.Next : single[] * int -> int

Parameters

points
Single[]

The point data for this operation, must have at least 8 items available to hold up to 4 pairs of point values

offset
Int32

An offset into the points array where entries should be placed.

Returns

the operation for the next element in the iteration

Attributes

Remarks

Returns the next verb in this iterator's Path, and fills entries in the points array with the point data (if any) for that operation. Each two floats represent the data for a single point of that operation. The number of pairs of floats supplied in the resulting array depends on the verb: <ul> <li>#VERB_MOVE: 1 pair (indices 0 to 1)</li> <li>#VERB_LINE: 2 pairs (indices 0 to 3)</li> <li>#VERB_QUAD: 3 pairs (indices 0 to 5)</li> <li>#VERB_CONIC: 3.5 pairs (indices 0 to 6), the seventh entry has the conic weight</li> <li>#VERB_CUBIC: 4 pairs (indices 0 to 7)</li> <li>#VERB_CLOSE: 0 pairs</li> <li>#VERB_DONE: 0 pairs</li> </ul>

Java documentation for android.graphics.PathIterator.next(float[], int).

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