http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Draws the line segment between pt1 and pt2 points in the image. The line is clipped by the image or ROI rectangle. For non-antialiased lines with integer coordinates the 8-connected or 4-connected Bresenham algorithm is used. Thick lines are drawn with rounding endings. Antialiased lines are drawn using Gaussian filtering.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static void cvLine( IntPtr img, Point pt1, Point pt2, MCvScalar color, int thickness, LINE_TYPE lineType, int shift ) |
Visual Basic |
---|
Public Shared Sub cvLine ( _ img As IntPtr, _ pt1 As Point, _ pt2 As Point, _ color As MCvScalar, _ thickness As Integer, _ lineType As LINE_TYPE, _ shift As Integer _ ) |
Visual C++ |
---|
public: static void cvLine( IntPtr img, Point pt1, Point pt2, MCvScalar color, int thickness, LINE_TYPE lineType, int shift ) |
Parameters
- img
- Type: System..::..IntPtr
The image
- pt1
- Type: System.Drawing..::..Point
First point of the line segment
- pt2
- Type: System.Drawing..::..Point
Second point of the line segment
- color
- Type: Emgu.CV.Structure..::..MCvScalar
Line color
- thickness
- Type: System..::..Int32
Line thickness.
- lineType
- Type: Emgu.CV.CvEnum..::..LINE_TYPE
Type of the line: 8 (or 0) - 8-connected line. 4 - 4-connected line. CV_AA - antialiased line.
- shift
- Type: System..::..Int32
Number of fractional bits in the point coordinates