Table of Contents

Method ArrowedLine

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ArrowedLine(InputOutputArray, Point, Point, Scalar, int, LineTypes, int, double)

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.

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 InputOutputArray

Image.

pt1 Point

The point the arrow starts from.

pt2 Point

The point the arrow points to.

color Scalar

Line color.

thickness int

Line thickness.

lineType LineTypes

Type of the line, see cv::LineTypes

shift int

Number of fractional bits in the point coordinates.

tipLength double

The length of the arrow tip in relation to the arrow length