See Also Examples Applies To
Draws text into the native GdPicture image using a texture which provides from an image file.
Syntax
object.DrawTextTexture (sText, nDstLeft, nDstTop, sTextureFilePath, nFontSize, 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. |
| nDstLeft | Required. Long. Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the string. |
| nDstTop | 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. If this parameter is empty, prompts the user to select a file. |
| nFontSize | Required. Long. The font size in units specified by the FontSetUnit() function. |
| nFontStyle |
Optional. FontStyle long value. Default value is 0 (Style Regular). Specifies the style of the typeface. This value must be an element of the FontStyle enumeration or the result of a bitwise OR applied to two or more of these elements. For example, FontStyleBold OR FontStyleUnderline OR FontStyleStrikeout sets the style as a combination of the three styles. FontStyle enumeration: FontStyleStyleRegular = 0. FontStyleStyleBold = 1. FontStyleStyleItalic = 2. FontStyleStyleBoldItalic = 3. FontStyleStyleUnderline = 4. FontStyleStyleStrikeout = 8. |
| sFontName | Optional. String. Default value is "Arial". The name of the font. |
| bAntiAlias | Optional. Boolean. Default value is False. Set to True to apply the Antialiasing algorithm else False. |
Returns
Long. GdPictureStatus
Remarks
Supported formats are BMP, DIB, RLE, ICO, EMF, WMF, GIF, ANIMATED GIF, JPEG, JPG, JPE, JFIF, PNG, TIFF, MULTIPAGE TIFF, PNM, PPM, PBM, PGM, RPPM, RPGM, RPBM, PCX.
Redistributing the optional gdimgplug.dll library you will also be able to read XPM, XBM, WBMP, TGA, SGI, Sun RAS, PSD, MNG, Kodak PhotoCD files, KOALA files, JP2, J2K, JNG, JBIG, IFF, HDR, Raw Fax G3, EXR, DDS and Dr. Halo files.
Category
Draw (Text)