GetPointsOnLine Method
Syntax
CWIMAQVision.GetPointsOnLine Line, Points
Return Type
On success, this method returns 0. On failure, this function returns a negative number.
Purpose
Given the endpoints of a line, returns an collection of all the points comprising the line.
Parameters
Line As CWIMAQLine
Specifies the line whose points the method returns.
Points As CWIMAQPoints
On return, the points on the line.
Example
Dim line As New CWIMAQLine Dim points As New CWIMAQPoints ' Initialize the line line.Initialize 10, 10, 100, 100 ' Find the points on the line CWIMAQVision1.GetPointsOnLine line, points