'Declaration
Public Overloads 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 TextAlignment, _ ByVal FontStyle As GdPictureFontStyle, _ ByVal TextColor As Integer, _ ByVal FontName As String, _ ByVal DrawBox As Boolean, _ ByVal AntiAlias As Boolean _ ) As GdPictureStatus
public GdPictureStatus DrawTextBox( int ImageID, string Text, int Left, int Top, int Width, int Height, float FontSize, TextAlignment Alignment, GdPictureFontStyle FontStyle, int TextColor, string FontName, bool DrawBox, bool AntiAlias )
public function DrawTextBox( ImageID: Integer; Text: String; Left: Integer; Top: Integer; Width: Integer; Height: Integer; FontSize: Single; Alignment: TextAlignment; FontStyle: GdPictureFontStyle; TextColor: Integer; FontName: String; DrawBox: Boolean; AntiAlias: Boolean ): GdPictureStatus;
public function DrawTextBox( ImageID : int, Text : String, Left : int, Top : int, Width : int, Height : int, FontSize : float, Alignment : TextAlignment, FontStyle : GdPictureFontStyle, TextColor : int, FontName : String, DrawBox : boolean, AntiAlias : boolean ) : GdPictureStatus;
Parameters
- 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 pixels, of the text box.
- Height
- Specifies the height, in pixels, of the text box.
- FontSize
- The font size in units specified by the FontSetUnit() method.
- Alignment
- A member of the TextAlign enumeration.
- FontStyle
- A member of the FontStyle enumeration.
- TextColor
- Color of the text. A suitable color value can be obtained by using the ARGBI() method.
- 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.
Return Value
A member of the GdPictureStatus enumeration.