語言

PathMeasure 建構函式

定義

多載

名稱 Description
PathMeasure()

建立一個空的 PathMeasure 物件。

PathMeasure(Path, Boolean)

建立一個與指定路徑物件(已建立且指定)相關聯的 PathMeasure 物件。

PathMeasure(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

PathMeasure()

建立一個空的 PathMeasure 物件。

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

備註

建立一個空的 PathMeasure 物件。 若要使用此方法測量路徑長度,及/或尋找沿路徑的位置與切線,請呼叫 setPath。

請注意,一旦路徑與測度物件關聯,若路徑後續被修改並使用測度物件,則該路徑仍為未定義。 如果路徑被修改,你必須呼叫 setPath 並使用該路徑。

Java 文件 android.graphics.PathMeasure.PathMeasure()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

PathMeasure(Path, Boolean)

建立一個與指定路徑物件(已建立且指定)相關聯的 PathMeasure 物件。

[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

參數

path
Path

這個物體將被測量的路徑

forceClosed
Boolean

如果為真,那麼即使路徑的輪廓並未明確封閉,也會被視為「封閉」。

屬性

備註

建立一個與指定路徑物件(已建立且指定)相關聯的 PathMeasure 物件。 測量物件現在可以回傳路徑的長度,以及路徑上任一位置的位置與切線。

請注意,一旦路徑與測度物件關聯,若路徑後續被修改並使用測度物件,則該路徑仍為未定義。 如果路徑被修改,你必須呼叫 setPath 並使用該路徑。

Java 文件 android.graphics.PathMeasure.PathMeasure(android.graphics.Path, boolean)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

PathMeasure(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

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

參數

javaReference
IntPtr

nativeint

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於