PixelLine Result
Runtime only
Applies To
Vision Objects: Line, LineFinder
Description
Run time only result which returns the pixel coordinate position data of the starting (X1, Y1) and ending (X2, Y2) points of the specified object.
Usage
VGet Sequence.Object.PixelLine[(result)], X1, Y1, X2, Y2
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- X1
- Real variable representing the X coordinate position of the starting point of the Line object specified by Object.
- Y1
- Real variable representing the Y coordinate position of the starting point of the Line object specified by Object.
- X2
- Real variable representing the X coordinate position of the ending point of the Line object specified by Object.
- Y2
- Real variable representing the Y coordinate position of the ending point of the Line object specified by Object.
- result
- Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.
Values
- X1, X2: Real variable specified in pixels from 1 - video width.
- Y1, Y2: Real variable specified in pixels from 1 - video height.
Remarks
The PixelLine result is a runtime result which provides the X1, Y1, X2 and Y2 pixel coordinate data for the starting and ending points of the specified Line object.
The PixelLine result returns the same information as the PixelX1, PixelY1, PixelX2, and PixelY2 results. However, it returns this information with 1 function call rather than 4 separate calls.
See Also
Line Object, LineFinder Object, PixelX1 Result, PixelX2 Result, PixelY1 Result, PixelY2 Result, RobotXYU Result, RobotU Result, RobotX Result, RobotY Result