Minimum enclosing rectangle of this shape.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- copyFlags
- Type: Cognex.VisionPro CogCopyShapeConstants
Specify which attributes of the shape to copy to the returned rectangle.
Return Value
Type: CogRectangleThe returned rectangle.
Implements
ICogShape EnclosingRectangle(CogCopyShapeConstants)Exceptions
| Exception | Condition |
|---|---|
| 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