java.lang.Object | |
↳ | android.gesture.GestureUtils |
Utility functions for gesture processing & analysis, including methods for:
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Computes an oriented, minimum bounding box of a set of points.
|
||||||||||
|
Computes an oriented, minimum bounding box of a set of points.
|
||||||||||
|
Samples the gesture spatially by rendering the gesture into a 2D
grayscale bitmap.
|
||||||||||
|
Samples the gesture spatially by rendering the gesture into a 2D
grayscale bitmap.
|
||||||||||
|
Samples a stroke temporally into a given number of evenly-distributed
points.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Computes an oriented, minimum bounding box of a set of points.
Computes an oriented, minimum bounding box of a set of points.
Samples the gesture spatially by rendering the gesture into a 2D grayscale bitmap. Scales the gesture to fit the size of the bitmap.
gesture | the gesture to be sampled |
---|---|
bitmapSize | the size of the bitmap |
keepAspectRatio | if the scaling should keep the gesture's aspect ratio |
Samples the gesture spatially by rendering the gesture into a 2D grayscale bitmap. Scales the gesture to fit the size of the bitmap. The scaling does not necessarily keep the aspect ratio of the gesture.
gesture | the gesture to be sampled |
---|---|
bitmapSize | the size of the bitmap |
Samples a stroke temporally into a given number of evenly-distributed points.
stroke | the gesture stroke to be sampled |
---|---|
numPoints | the number of points |