GdPicture.NET Reference Guide
DrawTextTextureFromFile Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : DrawTextTextureFromFile Method
GdPicture Image Identifier.
The texture source file path. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Text to draw.
Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the.
Specifies the y-coordinate of the upper-left corner of the rectangle that bounds the.
The font size in units specified by the FontSetUnit() method.
A member of the FontStyle enumeration.
The name of the font. IE: "Arial".
Set to True to apply the Antialiasing algorithm else False.
Draws a textured text on a GdPicture image using a texture from a file.
Syntax

Parameters

ImageID
GdPicture Image Identifier.
TextureFilePath
The texture source file path. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Text
Text to draw.
DstLeft
Specifies the x-coordinate of the upper-left corner of the rectangle that bounds the.
DstTop
Specifies the y-coordinate of the upper-left corner of the rectangle that bounds the.
FontSize
The font size in units specified by the FontSetUnit() method.
FontStyle
A member of the FontStyle enumeration.
FontName
The name of the font. IE: "Arial".
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
Supported formats are listed here: http://www.gdpicture.com/solutions/supported-formats/.
Example
Drawing text on the image with texture loaded from file.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.DrawTextTextureFromFile(ImageID, "Texture.tif", "GdPicture Imaging", 50, 50, 10.0, FontStyle.FontStyleRegular, "Arial",  True)
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
FontSetUnit Method
FontGetUnit Method