語言

GestureUtils.SpatialSampling 方法

定義

多載

名稱 Description
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[]

一個以一維陣列表示的位圖大小 x 位圖大小灰階點陣圖。 索引 i 處的浮點數代表像素 [i%bitmapSize, i/bitmapSize] 的灰階值

屬性

備註

透過將手勢渲染成 2D 灰階點陣圖,空間取樣。 會將手勢縮放到位圖大小。 縮放不一定會維持手勢的長寬比。

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

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

適用於

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[]

一個以一維陣列表示的位圖大小 x 位圖大小灰階點陣圖。 索引 i 處的浮點數代表像素 [i%bitmapSize, i/bitmapSize] 的灰階值

屬性

備註

透過將手勢渲染成 2D 灰階點陣圖,空間取樣。 會將手勢縮放到位圖大小。

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

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

適用於