Creates a new rectangle which is the erosion of this by Other.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- other
- Type: Cognex.VisionPro CogRectangle
The rectangle used to erode this rectangle.
- copyFlags
- Type: Cognex.VisionPro CogCopyShapeConstants
Specify which attributes of the shape to copy to the new shape.
Return Value
Type: CogRectangleThe eroded rectangle.
Events
| Event Type | Reason |
|---|---|
| CogRectangle Changed | Fires when the value of this property changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | other is NULL. |
Remarks
Creates a new rectangle that is the result of eroding this rectangle with another rectangle. The eroded rectangle is the result of tracing other's origin point as it occupies every possible point within this rectangle.
See Also