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

Draws a text on a GdPicture image using a linear gradient Imaging.Colors.

C#
public GdPictureStatus DrawTextGradient(
    int ImageID, 
    String Text, 
    int DstLeft, 
    int DstTop, 
    Color StartColor, 
    Color EndColor, 
    Single FontSize, 
    FontStyle FontStyle, 
    String FontName, 
    Boolean AntiAlias
);
Visual Basic
Public Function DrawTextGradient(
    ByVal ImageID As Integer, 
    ByVal Text As String, 
    ByVal DstLeft As Integer, 
    ByVal DstTop As Integer, 
    ByVal StartColor As Color, 
    ByVal EndColor As Color, 
    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.  
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  
StartColor 
Color Object. You can build a Color Object using the ARGB() function. Start color of the gradient.  
EndColor 
Color Object. You can build a Color Object using the ARGB() function. End color of the gradient.  
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.

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.