PathMeasure Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.