Sets the line parameters from the specified CogLineSegment. StartX, StartY will be used as the reference point. The direction of the line is from the segment's StartX, StartY to the EndX, EndY.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.0.0.0
Syntax
Parameters
- lineSegment
- Type: Cognex.VisionPro CogLineSegment
The line segment used to specify the line.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | lineSegment is NULL. |
| CogShapeCoordinatesMustDifferException | The points designated by the line segment are not unique |
Remarks
Sets the line parameters from the specified CogLineSegment. The line segment's StartX and StartY coordinates are used as the line's reference point. The direction of the line is from the line segment's (StartX, StartY) point to its (EndX, EndY) point.
See Also