CvLine Method (CvArr, Int32, Int32, Int32, Int32, CvScalar, Int32, LineType, Int32) 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 Line(
	CvArr img,
	int pt1X,
	int pt1Y,
	int pt2X,
	int pt2Y,
	CvScalar color,
	int thickness,
	LineType lineType,
	int shift
)

Parameters

img
Type: OpenCvSharpCvArr
The image.
pt1X
Type: SystemInt32
First point's x-coordinate of the line segment.
pt1Y
Type: SystemInt32
First point's y-coordinate of the line segment.
pt2X
Type: SystemInt32
Second point's x-coordinate of the line segment.
pt2Y
Type: SystemInt32
Second point's y-coordinate of the line segment.
color
Type: OpenCvSharpCvScalar
Line color.
thickness
Type: SystemInt32
Line thickness.
lineType
Type: OpenCvSharpLineType
Type of the line.
shift
Type: SystemInt32
Number of fractional bits in the point coordinates.
See Also

Reference