Dela via


PathMeasure Constructors

Definition

Overloads

PathMeasure()

Create an empty PathMeasure object.

PathMeasure(Path, Boolean)

Create a PathMeasure object associated with the specified path object (already created and specified).

PathMeasure(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PathMeasure()

Create an empty PathMeasure object.

[Android.Runtime.Register(".ctor", "()V", "")]
public PathMeasure ();
Attributes

Remarks

Create an empty PathMeasure object. To uses this to measure the length of a path, and/or to find the position and tangent along it, call setPath.

Note that once a path is associated with the measure object, it is undefined if the path is subsequently modified and the the measure object is used. If the path is modified, you must call setPath with the path.

Java documentation for android.graphics.PathMeasure.PathMeasure().

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

PathMeasure(Path, Boolean)

Create a PathMeasure object associated with the specified path object (already created and specified).

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;Z)V", "")]
public PathMeasure (Android.Graphics.Path? path, bool forceClosed);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Path;Z)V", "")>]
new Android.Graphics.PathMeasure : Android.Graphics.Path * bool -> Android.Graphics.PathMeasure

Parameters

path
Path

The path that will be measured by this object

forceClosed
Boolean

If true, then the path will be considered as "closed" even if its contour was not explicitly closed.

Attributes

Remarks

Create a PathMeasure object associated with the specified path object (already created and specified). The measure object can now return the path's length, and the position and tangent of any position along the path.

Note that once a path is associated with the measure object, it is undefined if the path is subsequently modified and the the measure object is used. If the path is modified, you must call setPath with the path.

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

PathMeasure(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected PathMeasure (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.PathMeasure : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.PathMeasure

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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