GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / DrawLine Method / DrawLine(Int32,Single,Single,Single,Single,Single,Int32,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 ARGBI() method.
Set to True to apply the Antialiasing algorithm else False.





In This Topic
DrawLine(Int32,Single,Single,Single,Single,Single,Int32,Boolean) Method
In This Topic
Draws a line on a GdPicture image. The drawing color is specified with an integer value.
Syntax
'Declaration
 
Public Overloads Function DrawLine( _
   ByVal ImageID As Integer, _
   ByVal SrcLeft As Single, _
   ByVal SrcTop As Single, _
   ByVal DstLeft As Single, _
   ByVal DstTop As Single, _
   ByVal PenWidth As Single, _
   ByVal PenColor As Integer, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawLine( 
   int ImageID,
   float SrcLeft,
   float SrcTop,
   float DstLeft,
   float DstTop,
   float PenWidth,
   int PenColor,
   bool AntiAlias
)
public function DrawLine( 
    ImageID: Integer;
    SrcLeft: Single;
    SrcTop: Single;
    DstLeft: Single;
    DstTop: Single;
    PenWidth: Single;
    PenColor: Integer;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawLine( 
   ImageID : int,
   SrcLeft : float,
   SrcTop : float,
   DstLeft : float,
   DstTop : float,
   PenWidth : float,
   PenColor : int,
   AntiAlias : boolean
) : GdPictureStatus;
public: GdPictureStatus DrawLine( 
   int ImageID,
   float SrcLeft,
   float SrcTop,
   float DstLeft,
   float DstTop,
   float PenWidth,
   int PenColor,
   bool AntiAlias
) 
public:
GdPictureStatus DrawLine( 
   int ImageID,
   float SrcLeft,
   float SrcTop,
   float DstLeft,
   float DstTop,
   float PenWidth,
   int 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 ARGBI() method.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

See Also