See Also Examples Applies To
Draws text into the native image using a texture which provides from a bitmap file.
Syntax
object.DrawTextTexture (sText, nDstX, nDstY, sTextureFilePath, nFontHeight, nFontStyle, sFontName, bAntiAlias)
The DrawTextTexture syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| sText | Required. String. Text to draw. |
| nDstX | Required. Long. Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the string. |
| nDstY | Required. Long. Specifies the y-coordinate of the upper-left corner of the rectangle that bounds the string. |
| sTextureFilePath | Required. String. The texture source file path. |
| nFontHeight | Required. Long. The font height in units specified by the FontSetUnit() method. |
| nFontStyle |
Optional. FontStyle long value. Default value is 0 (Style Regular). Can be: Style Regular = 0. Style Bold = 1. Style Italic = 2. Style BoldItalic = 3. Style Underline = 4. Style Strikeout = 8. |
| sFontName | Optional. String. Default value is "Arial". The name of the font. |
| bAntiAlias | Optional. Boolean. Default value is True. Set to True to apply the Antialiasing algorithm else False. |
Returns
Category
Draw (Text)