http://www.emgu.com
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.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void Line(
IInputOutputArray img,
Point pt1,
Point pt2,
MCvScalar color,
int thickness = 1,
LineType lineType = LineType.EightConnected,
int shift = 0
)
Public Shared Sub Line (
img As IInputOutputArray,
pt1 As Point,
pt2 As Point,
color As MCvScalar,
Optional thickness As Integer = 1,
Optional lineType As LineType = LineType.EightConnected,
Optional shift As Integer = 0
)
public:
static void Line(
IInputOutputArray^ img,
Point pt1,
Point pt2,
MCvScalar color,
int thickness = 1,
LineType lineType = LineType::EightConnected,
int shift = 0
)
static member Line :
img : IInputOutputArray *
pt1 : Point *
pt2 : Point *
color : MCvScalar *
?thickness : int *
?lineType : LineType *
?shift : int
(* Defaults:
let _thickness = defaultArg thickness 1
let _lineType = defaultArg lineType LineType.EightConnected
let _shift = defaultArg shift 0
*)
-> unit
Parameters
- img
- Type: Emgu.CVIInputOutputArray
The image - pt1
- Type: System.DrawingPoint
First point of the line segment - pt2
- Type: System.DrawingPoint
Second point of the line segment - color
- Type: Emgu.CV.StructureMCvScalar
Line color - thickness (Optional)
- Type: SystemInt32
Line thickness. - lineType (Optional)
- Type: Emgu.CV.CvEnumLineType
Type of the line:
8 (or 0) - 8-connected line.
4 - 4-connected line.
CV_AA - antialiased line.
- shift (Optional)
- Type: SystemInt32
Number of fractional bits in the point coordinates
See Also