Robert Valentino Well-Known Member Licensed User Longtime User Feb 14, 2019 #1 I am confused on Canvas.DrawText DrawText (Text As String, x As Float, y As Float, Font As B4XFont, Color As Int, Alignment As android.graphics.Paint.Align) Draws the text. Text - The text that will be drawn. x - The origin X coordinate. y - The origin Y coordinate. Font - The text font. Color - Drawing color. Alignment - Sets the alignment relative to the origin. One of the following values: LEFT, CENTER, RIGHT. How can you do align CENTER when you only have 2 points ( x / y ) isn't a width and height required to a
I am confused on Canvas.DrawText DrawText (Text As String, x As Float, y As Float, Font As B4XFont, Color As Int, Alignment As android.graphics.Paint.Align) Draws the text. Text - The text that will be drawn. x - The origin X coordinate. y - The origin Y coordinate. Font - The text font. Color - Drawing color. Alignment - Sets the alignment relative to the origin. One of the following values: LEFT, CENTER, RIGHT. How can you do align CENTER when you only have 2 points ( x / y ) isn't a width and height required to a
klaus Expert Licensed User Longtime User Feb 15, 2019 #2 No width needed. The result with: LEFT CENTER RIGHT The vertical alignment is on the base line of the text. Upvote 0
No width needed. The result with: LEFT CENTER RIGHT The vertical alignment is on the base line of the text.
Robert Valentino Well-Known Member Licensed User Longtime User Feb 15, 2019 #3 I get it. Thanks Upvote 0