CogLine SetFromLineSegment Method Cognex VisionPro 9.5
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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public void SetFromLineSegment(
	CogLineSegment lineSegment
)

Parameters

lineSegment
Type: Cognex.VisionPro CogLineSegment

The line segment used to specify the line.

Exceptions

ExceptionCondition
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