Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / DrawLine Method / DrawLine(Int32,Int32,Int32,Int32,Int32,Int32,Color,Boolean) Method
GdPicture image identifier.
Specifies the x-coordinate of the starting point of the line.
Specifies the y-coordinate of the starting point of the line.
Specifies the x-coordinate of the ending point of the line.
Specifies the y-coordinate of the ending point of the line.
The width, in pixel, of the pen used to draw the line.
Color of the line. A suitable color value can be obtained by using the ARGB() method.
Set to True to apply the Antialiasing algorithm else False.





In This Topic
    DrawLine(Int32,Int32,Int32,Int32,Int32,Int32,Color,Boolean) Method
    In This Topic
    Draws a line on a GdPicture image.
    Syntax
    'Declaration
     
    
    Public Overloads Function DrawLine( _
       ByVal ImageID As Integer, _
       ByVal SrcLeft As Integer, _
       ByVal SrcTop As Integer, _
       ByVal DstLeft As Integer, _
       ByVal DstTop As Integer, _
       ByVal PenWidth As Integer, _
       ByVal PenColor As Color, _
       ByVal AntiAlias As Boolean _
    ) As GdPictureStatus
    public GdPictureStatus DrawLine( 
       int ImageID,
       int SrcLeft,
       int SrcTop,
       int DstLeft,
       int DstTop,
       int PenWidth,
       Color PenColor,
       bool AntiAlias
    )
    public function DrawLine( 
        ImageID: Integer;
        SrcLeft: Integer;
        SrcTop: Integer;
        DstLeft: Integer;
        DstTop: Integer;
        PenWidth: Integer;
        PenColor: Color;
        AntiAlias: Boolean
    ): GdPictureStatus; 
    public function DrawLine( 
       ImageID : int,
       SrcLeft : int,
       SrcTop : int,
       DstLeft : int,
       DstTop : int,
       PenWidth : int,
       PenColor : Color,
       AntiAlias : boolean
    ) : GdPictureStatus;
    public: GdPictureStatus DrawLine( 
       int ImageID,
       int SrcLeft,
       int SrcTop,
       int DstLeft,
       int DstTop,
       int PenWidth,
       Color PenColor,
       bool AntiAlias
    ) 
    public:
    GdPictureStatus DrawLine( 
       int ImageID,
       int SrcLeft,
       int SrcTop,
       int DstLeft,
       int DstTop,
       int PenWidth,
       Color PenColor,
       bool AntiAlias
    ) 

    Parameters

    ImageID
    GdPicture image identifier.
    SrcLeft
    Specifies the x-coordinate of the starting point of the line.
    SrcTop
    Specifies the y-coordinate of the starting point of the line.
    DstLeft
    Specifies the x-coordinate of the ending point of the line.
    DstTop
    Specifies the y-coordinate of the ending point of the line.
    PenWidth
    The width, in pixel, of the pen used to draw the line.
    PenColor
    Color of the line. A suitable color value can be obtained by using the ARGB() method.
    AntiAlias
    Set to True to apply the Antialiasing algorithm else False.

    Return Value

    A member of the GdPictureStatus enumeration.
    See Also