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.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
Parameters
- img
- IntPtr
The image
- pt1
- Point
First point of the line segment
- pt2
- Point
Second point of the line segment
- color
- MCvScalar
Line color
- thickness
- Int32
Line thickness.
- lineType
- LINE_TYPE
Type of the line: 8 (or 0) - 8-connected line. 4 - 4-connected line. CV_AA - antialiased line.
- shift
- Int32
Number of fractional bits in the point coordinates