Minimum enclosing rectangle of this shape.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax
Parameters
- copyFlags
- Type: Cognex.Vision CopyShapeConstants
Specify which attributes of the shape to copy to the returned rectangle.
Return Value
Type: RectangleThe returned rectangle.
Implements
IShape EnclosingRectangle(CopyShapeConstants)Exceptions
| Exception | Condition |
|---|---|
| ShapeException | The shape is a Line. |
Remarks
Returns the smallest rectangle that encloses the shape. A Line does not have an enclosing rectangle.
See Also