Emgu CV Library Documentation
cvSampleLine Method (image, pt1, pt2, buffer, connectivity)
NamespacesEmgu.CVCvInvokecvSampleLine(IntPtr, MCvPoint, MCvPoint, IntPtr, Int32)

www.emgu.com/wiki
Implements a particular case of application of line iterators. The function reads all the image points lying on the line between pt1 and pt2, including the ending points, and stores them into the buffer
Declaration Syntax
C#Visual BasicVisual C++
public static int cvSampleLine(
	IntPtr image,
	MCvPoint pt1,
	MCvPoint pt2,
	IntPtr buffer,
	int connectivity
)
Public Shared Function cvSampleLine ( _
	image As IntPtr, _
	pt1 As MCvPoint, _
	pt2 As MCvPoint, _
	buffer As IntPtr, _
	connectivity As Integer _
) As Integer
public:
static int cvSampleLine(
	IntPtr image, 
	MCvPoint pt1, 
	MCvPoint pt2, 
	IntPtr buffer, 
	int connectivity
)
Parameters
image (IntPtr)
Image to sample the line from
pt1 (MCvPoint)
Starting the line point.
pt2 (MCvPoint)
Ending the line point
buffer (IntPtr)
Buffer to store the line points; must have enough size to store max( |pt2.x-pt1.x|+1, |pt2.y-pt1.y|+1 ) points in case of 8-connected line and |pt2.x-pt1.x|+|pt2.y-pt1.y|+1 in case of 4-connected line
connectivity (Int32)
The line connectivity, 4 or 8
Return Value

[Missing <returns> documentation for M:Emgu.CV.CvInvoke.cvSampleLine(System.IntPtr,Emgu.CV.MCvPoint,Emgu.CV.MCvPoint,System.IntPtr,System.Int32)]

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