The function displays a text in a custom array (buffer) and returns the result of that operation. The array is designed to create the graphical resource.
[in] Displayed text that will be written to the buffer. Only one-lined text is displayed.
[in] X coordinate of the anchor point of the displayed text.
[in] Y coordinate of the anchor point of the displayed text.
[in] The value out of the 9 pre-defined methods of the displayed text's anchor point location. The value is set by a combination of two flags flags of horizontal and vertical text align. Flag names are listed in the Note below.
[in] Buffer, in which text is displayed. The buffer is used to create the graphical resource.
[in] Buffer width in pixels.
[in] Buffer height in pixels.
[in] Text color.
[in] Color format is set by ENUM_COLOR_FORMAT enumeration value.
Returns true if successful, otherwise false.
Anchor point specified by anchor is a combination of two flags of horizontal and vertical text align. Horizontal text align flags:
Vertical text align flags:
Possible combinations of flags and specified anchor points are shown in the image.