Click or drag to resize

Cv2ArrowedLine Method

Draws a arrow segment pointing from the first point to the second one. The function arrowedLine draws an arrow between pt1 and pt2 points in the image. See also cv::line.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void ArrowedLine(
	InputOutputArray img,
	Point pt1,
	Point pt2,
	Scalar color,
	int thickness = 1,
	LineTypes lineType = LineTypes.Link8,
	int shift = 0,
	double tipLength = 0.1
)

Parameters

img
Type: OpenCvSharpInputOutputArray
Image.
pt1
Type: OpenCvSharpPoint
The point the arrow starts from.
pt2
Type: OpenCvSharpPoint
The point the arrow points to.
color
Type: OpenCvSharpScalar
Line color.
thickness (Optional)
Type: SystemInt32
Line thickness.
lineType (Optional)
Type: OpenCvSharpLineTypes
Type of the line, see cv::LineTypes
shift (Optional)
Type: SystemInt32
Number of fractional bits in the point coordinates.
tipLength (Optional)
Type: SystemDouble
The length of the arrow tip in relation to the arrow length
See Also