Emgu CV Library Documentation
cvClipLine Method (imgSize, pt1, pt2)
NamespacesEmgu.CVCvInvokecvClipLine(Size, Point%, Point%)

www.emgu.com/wiki
Calculates a part of the line segment which is entirely in the image. It returns 0 if the line segment is completely outside the image and 1 otherwise.
Declaration Syntax
C#Visual BasicVisual C++
public static int cvClipLine(
	Size imgSize,
	ref Point pt1,
	ref Point pt2
)
Public Shared Function cvClipLine ( _
	imgSize As Size, _
	ByRef pt1 As Point, _
	ByRef pt2 As Point _
) As Integer
public:
static int cvClipLine(
	Size imgSize, 
	Point% pt1, 
	Point% pt2
)
Parameters
imgSize (Size)
Size of the image
pt1 ( Point %)
First ending point of the line segment. It is modified by the function
pt2 ( Point %)
Second ending point of the line segment. It is modified by the function.
Return Value
It returns 0 if the line segment is completely outside the image and 1 otherwise.

Assembly: Emgu.CV (Module: Emgu.CV) Version: 1.5.0.0 (1.5.0.0)