CogLineSegment CreateLine Method (CogCopyShapeConstants)Cognex VisionPro 9.22 SR1
Creates a gcnew CogLine 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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
Syntax

public CogLine CreateLine(
	CogCopyShapeConstants copyFlags
)

Return Value

Type: CogLine

The newly created CogLine.

Remarks

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

See Also