Syntax
| draw.ID.text.ex(X, Y, Text, FontName, Size, TextColor, Bold, FontWeight, Orientation, Italic) |
Parameters
| INT | X, Y | Position of the text.
| | STRING | Text | Text to render.
| | STRING | FontName | Name of the font to be used.
| | INT | Size | Size of the text.
| | COLOR | TextColor | Color of the text.
| | BOOL | Bold | Optional. Set to true for bold.
| | INT | FontWeight | Optional. Weight of the font.
| | INT | Orientation | Optional. Orientation of the text, in degres.
| | BOOL | Italic | Optional. Set to true for italic. |
Return value
| Width of the text as rendered |
Description
Draw a text on the specified bitmap picture.
The function draw.ID.text.ex.getWidth make it possible to know the size of the text after rendering, for example to center the text. |
MioScript Sample Code
draw.main.text.ex(
100,100,
"Hello, World",
"Arial", 12,
num.rgb(255,0,0),
true
)
draw.main.paint() |
|