Click or drag to resize

Cv2ClipLine Method (Rect, Point, Point)

Clips the line against the image rectangle

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static bool ClipLine(
	Rect imgRect,
	ref Point pt1,
	ref Point pt2
)

Parameters

imgRect
Type: OpenCvSharpRect
sThe image rectangle
pt1
Type: OpenCvSharpPoint
The first line point
pt2
Type: OpenCvSharpPoint
The second line point

Return Value

Type: Boolean
See Also