http://www.emgu.com
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.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static int cvClipLine(
	Size imgSize,
	ref Point pt1,
	ref Point pt2
)
Visual Basic
Public Shared Function cvClipLine ( 
	imgSize As Size,
	ByRef pt1 As Point,
	ByRef pt2 As Point
) As Integer
Visual C++
public:
static int cvClipLine(
	Size imgSize, 
	Point% pt1, 
	Point% pt2
)
F#
static member cvClipLine : 
        imgSize : Size * 
        pt1 : Point byref * 
        pt2 : Point byref -> int 

Parameters

imgSize
Type: System.Drawing..::..Size
Size of the image
pt1
Type: System.Drawing..::..Point%
First ending point of the line segment. It is modified by the function
pt2
Type: System.Drawing..::..Point%
Second ending point of the line segment. It is modified by the function.

Return Value

Type: Int32
It returns 0 if the line segment is completely outside the image and 1 otherwise.

See Also