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





pen
Pen color and width
pt1
Starting Point
pt2
Ending Point

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 pt1 As System.Drawing.PointF, _
   ByVal pt2 As System.Drawing.PointF _
) 
Visual Basic (Usage)Copy Code
Dim instance As ImGraphic
Dim pen As System.Drawing.Pen
Dim pt1 As System.Drawing.PointF
Dim pt2 As System.Drawing.PointF
 
instance.DrawLine(pen, pt1, pt2)
C# 
public void DrawLine( 
   System.Drawing.Pen pen,
   System.Drawing.PointF pt1,
   System.Drawing.PointF pt2
)
JScript 
public function DrawLine( 
   pen : System.Drawing.Pen,
   pt1 : System.Drawing.PointF,
   pt2 : System.Drawing.PointF
);
Managed Extensions for C++ 
public: void DrawLine( 
   System.Drawing.Pen* pen,
   System.Drawing.PointF pt1,
   System.Drawing.PointF pt2
) 
C++/CLI 
public:
void DrawLine( 
   System.Drawing.Pen^ pen,
   System.Drawing.PointF pt1,
   System.Drawing.PointF pt2
) 

Parameters

pen
Pen color and width
pt1
Starting Point
pt2
Ending Point

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.