LineProfile Method
Syntax
CWIMAQVision.LineProfile SourceImage, x1, y1, x2, y2, ProfileArray, ProfileReport
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
Obsolete—Use LineProfile2 instead. Computes the profile of a line of pixels.
Remarks
Use this method with U8, I16, and SGL images.
Parameters
SourceImage As CWIMAQImage
The image on which the method computes the line profile.
x1 As Long
The x-coordinate of the start point of the line.
y1 As Long
The y-coordinate of the start point of the line.
x2 As Long
The x-coordinate of the end point of the line.
y2 As Long
The y-coordinate of the end point of the line.
ProfileArray As Variant
On return, an array containing the value of each pixel in the line.
ProfileReport As CWIMAQProfileReport
On return, a report object containing relevant information about the pixels in the indicated line.