ImageMan.Net Version 3 Summer 2012 Release
DrawLine(Pen,Int32,Int32,Int32,Int32) Method
See Also  Send Feedback
DTI.ImageMan Namespace > ImGraphic Class > DrawLine Method : DrawLine(Pen,Int32,Int32,Int32,Int32) Method





pen
Pen color and width
x1
Starting Point X value.
y1
Starting Point Y value.
x2
Ending Point X value.
y2
Ending Point Y value.

Glossary Item Box

Draw a Straight Line on the Image.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub DrawLine( _
   ByVal pen As System.Drawing.Pen, _
   ByVal x1 As System.Integer, _
   ByVal y1 As System.Integer, _
   ByVal x2 As System.Integer, _
   ByVal y2 As System.Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As ImGraphic
Dim pen As System.Drawing.Pen
Dim x1 As System.Integer
Dim y1 As System.Integer
Dim x2 As System.Integer
Dim y2 As System.Integer
 
instance.DrawLine(pen, x1, y1, x2, y2)
C# 
public void DrawLine( 
   System.Drawing.Pen pen,
   System.int x1,
   System.int y1,
   System.int x2,
   System.int y2
)
JScript 
public function DrawLine( 
   pen : System.Drawing.Pen,
   x1 : System.int,
   y1 : System.int,
   x2 : System.int,
   y2 : System.int
);
Managed Extensions for C++ 
public: void DrawLine( 
   System.Drawing.Pen* pen,
   System.int x1,
   System.int y1,
   System.int x2,
   System.int y2
) 
C++/CLI 
public:
void DrawLine( 
   System.Drawing.Pen^ pen,
   System.int x1,
   System.int y1,
   System.int x2,
   System.int y2
) 

Parameters

pen
Pen color and width
x1
Starting Point X value.
y1
Starting Point Y value.
x2
Ending Point X value.
y2
Ending Point Y value.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.