Draws an aligned text into a bounding box on a GdPicture image.
public GdPictureStatus DrawTextBox( int ImageID, String Text, int Left, int Top, int Width, int Height, Single FontSize, TextAlign Alignment, FontStyle FontStyle, Color TextColor, String FontName, Boolean DrawBox, Boolean AntiAlias );
Public Function DrawTextBox( ByVal ImageID As Integer, ByVal Text As String, ByVal Left As Integer, ByVal Top As Integer, ByVal Width As Integer, ByVal Height As Integer, ByVal FontSize As Single, ByVal Alignment As TextAlign, ByVal FontStyle As FontStyle, ByVal TextColor As Color, ByVal FontName As String, ByVal DrawBox As Boolean, ByVal AntiAlias As Boolean ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
Text |
Text to draw. |
|
Left |
Specifies the x-coordinate of the upper-left corner of the text box. |
|
Top |
Specifies the y-coordinate of the upper-left corner of the text box. |
|
Width |
Specifies the width in pixel of the text box. |
|
Height |
Specifies the height in pixel of the text box. |
|
FontSize |
The font size in units specified by the FontSetUnit() function. |
|
Alignment |
A member of the TextAlign enumeration. |
|
FontStyle |
A member of the FontStyle enumeration. |
|
TextColor |
Color Object. You can build a Color Object using the ARGB() function. Color of the text. |
|
FontName |
The name of the font. IE: "Arial" |
|
DrawBox |
Set this parameter to True to draw the textbox that bounds the text. |
|
AntiAlias |
Set to True to apply the Antialiasing algorithm else False. |
A member of the GdPictureStatus enumeration.
To draw watermark text use an ARGB value with alpha component < 255.
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|