Adjust the shape's geometric properties so that the shape fits inside passed in rectangle.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.0.0
Parameters
- boundingRectangle
- Type: Cognex.Vision Rectangle
The rectangle that the shape is to fit into.
Implements
IShape FitToBoundingBox(Rectangle)Adjusts the shape's geometric properties so that the shape fits inside a given rectangle. The coordinates of the bounding box must be given in the same coordinate space as the shape. Different shapes behave differently when FitToBoundingBox(Rectangle) is called. Behavior of FitToBoundingBox(Rectangle) with different shapes