CogPolygon EnclosingRectangle Method Cognex VisionPro 9.7
Minimum enclosing rectangle of this shape.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

public virtual CogRectangle EnclosingRectangle(
	CogCopyShapeConstants copyFlags
)

Return Value

Type: CogRectangle

The returned rectangle.

Implements

ICogShape EnclosingRectangle(CogCopyShapeConstants)
Exceptions

ExceptionCondition
CogShapeCannotEncloseException

The shape is a CogLine.

Remarks

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

See Also