Compartir a través de


Canvas.DrawPosText Method

Definition

Overloads

DrawPosText(Char[], Int32, Int32, Single[], Paint)
Obsolete.

Draw the text in the array, with each character's origin specified by the pos array.

DrawPosText(String, Single[], Paint)
Obsolete.

Draw the text in the array, with each character's origin specified by the pos array.

DrawPosText(Char[], Int32, Int32, Single[], Paint)

Caution

deprecated

Draw the text in the array, with each character's origin specified by the pos array.

[Android.Runtime.Register("drawPosText", "([CII[FLandroid/graphics/Paint;)V", "GetDrawPosText_arrayCIIarrayFLandroid_graphics_Paint_Handler")]
[System.Obsolete("deprecated")]
public virtual void DrawPosText (char[] text, int index, int count, float[] pos, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawPosText", "([CII[FLandroid/graphics/Paint;)V", "GetDrawPosText_arrayCIIarrayFLandroid_graphics_Paint_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member DrawPosText : char[] * int * int * single[] * Android.Graphics.Paint -> unit
override this.DrawPosText : char[] * int * int * single[] * Android.Graphics.Paint -> unit

Parameters

text
Char[]

The text to be drawn

index
Int32

The index of the first character to draw

count
Int32

The number of characters to draw, starting from index.

pos
Single[]

Array of [x,y] positions, used to position each character

paint
Paint

The paint used for the text (e.g. color, size, style)

Attributes

Remarks

Draw the text in the array, with each character's origin specified by the pos array.

This member is deprecated. This method does not support glyph composition and decomposition and should therefore not be used to render complex scripts. It also doesn't handle supplementary characters (eg emoji).

Java documentation for android.graphics.Canvas.drawPosText(char[], int, int, float[], android.graphics.Paint).

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

DrawPosText(String, Single[], Paint)

Caution

deprecated

Draw the text in the array, with each character's origin specified by the pos array.

[Android.Runtime.Register("drawPosText", "(Ljava/lang/String;[FLandroid/graphics/Paint;)V", "GetDrawPosText_Ljava_lang_String_arrayFLandroid_graphics_Paint_Handler")]
[System.Obsolete("deprecated")]
public virtual void DrawPosText (string text, float[] pos, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawPosText", "(Ljava/lang/String;[FLandroid/graphics/Paint;)V", "GetDrawPosText_Ljava_lang_String_arrayFLandroid_graphics_Paint_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member DrawPosText : string * single[] * Android.Graphics.Paint -> unit
override this.DrawPosText : string * single[] * Android.Graphics.Paint -> unit

Parameters

text
String

The text to be drawn

pos
Single[]

Array of [x,y] positions, used to position each character

paint
Paint

The paint used for the text (e.g. color, size, style)

Attributes

Remarks

Draw the text in the array, with each character's origin specified by the pos array.

This member is deprecated. This method does not support glyph composition and decomposition and should therefore not be used to render complex scripts. It also doesn't handle supplementary characters (eg emoji).

Java documentation for android.graphics.Canvas.drawPosText(java.lang.String, float[], android.graphics.Paint).

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