CvDrawLine Method (CvArr, CvPoint, CvPoint, CvScalar) OpenCvSharp Class Library
Draws a line segment connecting two points

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void DrawLine(
	CvArr img,
	CvPoint pt1,
	CvPoint pt2,
	CvScalar color
)

Parameters

img
Type: OpenCvSharpCvArr
The image.
pt1
Type: OpenCvSharpCvPoint
First point of the line segment.
pt2
Type: OpenCvSharpCvPoint
Second point of the line segment.
color
Type: OpenCvSharpCvScalar
Line color.
See Also

Reference