GestureUtils.SpatialSampling 方法

定義

多載

SpatialSampling(Gesture, Int32)

藉由將手勢轉譯成 2D 灰階點陣圖,以空間方式取樣手勢。

SpatialSampling(Gesture, Int32, Boolean)

藉由將手勢轉譯成 2D 灰階點陣圖,以空間方式取樣手勢。

SpatialSampling(Gesture, Int32)

藉由將手勢轉譯成 2D 灰階點陣圖,以空間方式取樣手勢。

[Android.Runtime.Register("spatialSampling", "(Landroid/gesture/Gesture;I)[F", "")]
public static float[]? SpatialSampling (Android.Gestures.Gesture? gesture, int bitmapSize);
[<Android.Runtime.Register("spatialSampling", "(Landroid/gesture/Gesture;I)[F", "")>]
static member SpatialSampling : Android.Gestures.Gesture * int -> single[]

參數

gesture
Gesture

要取樣的手勢

bitmapSize
Int32

點陣圖的大小

傳回

Single[]

bitmapSize x bitmapSize 以 1D 陣列表示的灰階點陣圖。 索引 i 上的浮點數代表圖元的灰階值 [i%bitmapSize, i/bitmapSize]

屬性

備註

藉由將手勢轉譯成 2D 灰階點陣圖,以空間方式取樣手勢。 調整筆勢以符合位圖的大小。 縮放比例不一定保留手勢的外觀比例。

android.gesture.GestureUtils.spatialSampling(android.gesture.Gesture, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

SpatialSampling(Gesture, Int32, Boolean)

藉由將手勢轉譯成 2D 灰階點陣圖,以空間方式取樣手勢。

[Android.Runtime.Register("spatialSampling", "(Landroid/gesture/Gesture;IZ)[F", "")]
public static float[]? SpatialSampling (Android.Gestures.Gesture? gesture, int bitmapSize, bool keepAspectRatio);
[<Android.Runtime.Register("spatialSampling", "(Landroid/gesture/Gesture;IZ)[F", "")>]
static member SpatialSampling : Android.Gestures.Gesture * int * bool -> single[]

參數

gesture
Gesture

要取樣的手勢

bitmapSize
Int32

點陣圖的大小

keepAspectRatio
Boolean

如果縮放比例應保留手勢的外觀比例,則為

傳回

Single[]

bitmapSize x bitmapSize 以 1D 陣列表示的灰階點陣圖。 索引 i 上的浮點數代表圖元的灰階值 [i%bitmapSize, i/bitmapSize]

屬性

備註

藉由將手勢轉譯成 2D 灰階點陣圖,以空間方式取樣手勢。 調整筆勢以符合位圖的大小。

android.gesture.GestureUtils.spatialSampling(android.gesture.Gesture, int, boolean)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於