Promotic
WikipediaLinkedInYoutubeTwitterFacebook

fillText - method of object CanvasCtx

Description:
Draws filled text. The default color is black.
Syntax:
fillText(text As String, x As Long, y As Long, [maxWidth As Long]) As Object
Calling:
ctx.fillText(text, x, y, maxWidth);
Parameters:
text(String) Text to be written
x(Long) The x-coordinate of the text drawing
y(Long) The y-coordinate of the text drawing
maxWidth[optional] (Long) The maximum allowed size of the text (in pixels).
Note:
The method can also be called in the graphic item events for Web Panels.
See also:
Example:
ctx.fillStyle = "blue";
ctx.fillText("Promotic", 50, 20);
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice