Language

Gesture.ToPath Method

Definition

Overloads

Name Description
ToPath(Path, Int32, Int32, Edge, Int32)

Appends resampled, scaled stroke paths to a supplied or new path.

ToPath()

Creates a path from the gesture's stroke paths.

ToPath(Path)

Appends the gesture's stroke paths to a supplied or new path.

ToPath(Int32, Int32, Edge, Int32)

Creates a path from resampled strokes scaled to the specified dimensions.

ToPath(Path, Int32, Int32, Edge, Int32)

Appends resampled, scaled stroke paths to a supplied or new path.

[Android.Runtime.Register("toPath", "(Landroid/graphics/Path;IIII)Landroid/graphics/Path;", "GetToPath_Landroid_graphics_Path_IIIIHandler")]
public virtual Android.Graphics.Path? ToPath(Android.Graphics.Path? path, int width, int height, Android.Views.Edge edge, int numSample);
[<Android.Runtime.Register("toPath", "(Landroid/graphics/Path;IIII)Landroid/graphics/Path;", "GetToPath_Landroid_graphics_Path_IIIIHandler")>]
abstract member ToPath : Android.Graphics.Path * int * int * Android.Views.Edge * int -> Android.Graphics.Path
override this.ToPath : Android.Graphics.Path * int * int * Android.Views.Edge * int -> Android.Graphics.Path

Parameters

path
Path

The path to which resampled stroke paths are appended, or null to create a path. Existing contents are not cleared.

width
Int32

The target width used to scale each stroke, in coordinate units.

height
Int32

The target height used to scale each stroke, in coordinate units.

edge
Edge

The numeric margin subtracted twice from each target dimension. Despite its managed enum type, this value is a distance, not an edge-selection flag. It does not translate the path.

numSample
Int32

The number of points used to resample each stroke before creating its path.

Returns

The supplied path, or a new path if path is null, with the resampled stroke paths appended. Each stroke is translated to its own bounding-box origin and scaled uniformly to fit the target dimensions minus twice the margin.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToPath()

Creates a path from the gesture's stroke paths.

[Android.Runtime.Register("toPath", "()Landroid/graphics/Path;", "GetToPathHandler")]
public virtual Android.Graphics.Path? ToPath();
[<Android.Runtime.Register("toPath", "()Landroid/graphics/Path;", "GetToPathHandler")>]
abstract member ToPath : unit -> Android.Graphics.Path
override this.ToPath : unit -> Android.Graphics.Path

Returns

A new path containing the gesture's stroke paths in their original coordinates.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToPath(Path)

Appends the gesture's stroke paths to a supplied or new path.

[Android.Runtime.Register("toPath", "(Landroid/graphics/Path;)Landroid/graphics/Path;", "GetToPath_Landroid_graphics_Path_Handler")]
public virtual Android.Graphics.Path? ToPath(Android.Graphics.Path? path);
[<Android.Runtime.Register("toPath", "(Landroid/graphics/Path;)Landroid/graphics/Path;", "GetToPath_Landroid_graphics_Path_Handler")>]
abstract member ToPath : Android.Graphics.Path -> Android.Graphics.Path
override this.ToPath : Android.Graphics.Path -> Android.Graphics.Path

Parameters

path
Path

The path to which stroke paths are appended, or null to create a path. Existing contents are not cleared.

Returns

The supplied path, or a new path if path is null, with the gesture's stroke paths appended.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ToPath(Int32, Int32, Edge, Int32)

Creates a path from resampled strokes scaled to the specified dimensions.

[Android.Runtime.Register("toPath", "(IIII)Landroid/graphics/Path;", "GetToPath_IIIIHandler")]
public virtual Android.Graphics.Path? ToPath(int width, int height, Android.Views.Edge edge, int numSample);
[<Android.Runtime.Register("toPath", "(IIII)Landroid/graphics/Path;", "GetToPath_IIIIHandler")>]
abstract member ToPath : int * int * Android.Views.Edge * int -> Android.Graphics.Path
override this.ToPath : int * int * Android.Views.Edge * int -> Android.Graphics.Path

Parameters

width
Int32

The target width used to scale each stroke, in coordinate units.

height
Int32

The target height used to scale each stroke, in coordinate units.

edge
Edge

The numeric margin subtracted twice from each target dimension. Despite its managed enum type, this value is a distance, not an edge-selection flag. It does not translate the path.

numSample
Int32

The number of points used to resample each stroke before creating its path.

Returns

A new path containing the resampled stroke paths. Each stroke is translated to its own bounding-box origin and scaled uniformly to fit the target dimensions minus twice the margin.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to