LineSegment EnclosingRectangle Method Cognex VisionPro 9.22

Minimum enclosing rectangle of this shape.

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

public Rectangle EnclosingRectangle(
	CopyShapeConstants copyFlags
)

Parameters

copyFlags
Type: Cognex.Vision CopyShapeConstants
Specify which attributes of the shape to copy to the returned rectangle.

Return Value

Type: Rectangle

The returned rectangle.

Implements

IShape EnclosingRectangle(CopyShapeConstants)
Exceptions

ExceptionCondition
ShapeExceptionThe shape is a Line.
Remarks

Returns the smallest rectangle that encloses the shape. A Line does not have an enclosing rectangle.

See Also