LineSegment CreateLine Method (CopyShapeConstants)Cognex VisionPro 9.21 SR1

Creates a new Line for this line segment. The reference point on the line will be the midpoint of the segment. The line segment must not be degenerate (i.e. the end points must differ).

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
Syntax

public Line CreateLine(
	CopyShapeConstants copyFlags
)

Return Value

Type: Line

The newly created Line.

Remarks

Creates a new Line for this line segment. The reference point on the new line is the midpoint ( MidpointX, MidpointY ) of the segment.

See Also