TextOut
The TextOut function writes a character string at the specified location, using the currently created font.
TextOut
nXStart,nYStart,sText[,bUnicode]
Parameters
-
nXStart
-
Specifies the x-coordinate of the reference point that is used to align the string.
-
nYStart
-
Specifies the y-coordinate of the reference point that is used to align the string.
-
sText
-
String to be drawn.
-
bUnicode
- Optional. If True the function will use the Unicode representation
of the string. If False the function will use the ASCII representaion.
The default value is False.
If you pass UTF-8 encoded string directly to TextOut method then you can
set this parameter to 65001. Shotgraph will decode UTF-8 to usual text.
Remarks
The interpretation of the reference point depends on the current text-alignment mode.
An application can alter this mode by calling the SetTextAlign function.
See too
CreateFont,
SetTextColor,
SetTextAlign,
SetBkColor,
SetBkMode
Example
See CreateFont