Click or drag to resize

CvInvokeClipLine Method

http://www.emgu.com
Calculates a part of the line segment which is entirely in the rectangle.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static bool ClipLine(
	Rectangle rectangle,
	ref Point pt1,
	ref Point pt2
)

Parameters

rectangle
Type: System.DrawingRectangle
The rectangle
pt1
Type: System.DrawingPoint
First ending point of the line segment. It is modified by the function
pt2
Type: System.DrawingPoint
Second ending point of the line segment. It is modified by the function.

Return Value

Type: Boolean
It returns false if the line segment is completely outside the rectangle and true otherwise.
See Also