다음을 통해 공유


Paint.GetTextPath Method

Definition

Overloads

GetTextPath(Char[], Int32, Int32, Single, Single, Path)

Return the path (outline) for the specified text.

GetTextPath(String, Int32, Int32, Single, Single, Path)

Return the path (outline) for the specified text.

GetTextPath(Char[], Int32, Int32, Single, Single, Path)

Return the path (outline) for the specified text.

[Android.Runtime.Register("getTextPath", "([CIIFFLandroid/graphics/Path;)V", "GetGetTextPath_arrayCIIFFLandroid_graphics_Path_Handler")]
public virtual void GetTextPath (char[]? text, int index, int count, float x, float y, Android.Graphics.Path? path);
[<Android.Runtime.Register("getTextPath", "([CIIFFLandroid/graphics/Path;)V", "GetGetTextPath_arrayCIIFFLandroid_graphics_Path_Handler")>]
abstract member GetTextPath : char[] * int * int * single * single * Android.Graphics.Path -> unit
override this.GetTextPath : char[] * int * int * single * single * Android.Graphics.Path -> unit

Parameters

text
Char[]

the text to retrieve the path from

index
Int32

the index of the first character in text

count
Int32

the number of characters starting with index

x
Single

the x coordinate of the text's origin

y
Single

the y coordinate of the text's origin

path
Path

the path to receive the data describing the text. Must be allocated by the caller

Attributes

Remarks

Return the path (outline) for the specified text. Note: just like Canvas.drawText, this will respect the Align setting in the paint.

Java documentation for android.graphics.Paint.getTextPath(char[], int, int, float, float, android.graphics.Path).

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

GetTextPath(String, Int32, Int32, Single, Single, Path)

Return the path (outline) for the specified text.

[Android.Runtime.Register("getTextPath", "(Ljava/lang/String;IIFFLandroid/graphics/Path;)V", "GetGetTextPath_Ljava_lang_String_IIFFLandroid_graphics_Path_Handler")]
public virtual void GetTextPath (string? text, int start, int end, float x, float y, Android.Graphics.Path? path);
[<Android.Runtime.Register("getTextPath", "(Ljava/lang/String;IIFFLandroid/graphics/Path;)V", "GetGetTextPath_Ljava_lang_String_IIFFLandroid_graphics_Path_Handler")>]
abstract member GetTextPath : string * int * int * single * single * Android.Graphics.Path -> unit
override this.GetTextPath : string * int * int * single * single * Android.Graphics.Path -> unit

Parameters

text
String

the text to retrieve the path from

start
Int32

the first character in the text

end
Int32

1 past the last character in the text

x
Single

the x coordinate of the text's origin

y
Single

the y coordinate of the text's origin

path
Path

the path to receive the data describing the text. Must be allocated by the caller

Attributes

Remarks

Return the path (outline) for the specified text. Note: just like Canvas.drawText, this will respect the Align setting in the paint.

Java documentation for android.graphics.Paint.getTextPath(java.lang.String, int, int, float, float, android.graphics.Path).

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