GestureUtils.SpatialSampling 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
位图的大小
返回
一个 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
如果缩放应保持手势的纵横比,则
返回
一个 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 属性许可证中所述的术语使用。