You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing (Text) > DrawTextTextureFromFile Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.DrawTextTextureFromFile Method

Draws a textured text on a GdPicture image using a texture from a file.

C#
public GdPictureStatus DrawTextTextureFromFile(
    int ImageID, 
    String TextureFilePath, 
    String Text, 
    int DstLeft, 
    int DstTop, 
    Single FontSize, 
    FontStyle FontStyle, 
    String FontName, 
    Boolean AntiAlias
);
Visual Basic
Public Function DrawTextTextureFromFile(
    ByVal ImageID As Integer, 
    ByVal TextureFilePath As String, 
    ByVal Text As String, 
    ByVal DstLeft As Integer, 
    ByVal DstTop As Integer, 
    ByVal FontSize As Single, 
    ByVal FontStyle As FontStyle, 
    ByVal FontName As String, 
    ByVal AntiAlias As Boolean
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
TextureFilePath 
The texture source file path. If this parameter is empty, prompts the user to select a 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() function.  
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.  
Returns

A member of the GdPictureStatus enumeration.

Supported formats are RAW, PICT, BMP, DIB, RLE, ICO, EMF, WMF, GIF, ANIMATED GIF, JPEG, JPG, JPE, JFIF, PNG, TIFF, MULTIPAGE TIFF, PNM, PPM, PBM, PGM, PFM, RPPM, RPGM, RPBM, PCX, 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.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.