Android Question Canvas.DrawText

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I am confused on Canvas.DrawText

Method_636.png
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
 
Top