Create a Deep Copy of the provided IRegion Vision object in the form of an ICogRegion VisionPro object, maintaining
dimension equivalence and selected space name. Graphics properties are not converted; the ICogRegion will have default
graphical settings (color, line width, etc).
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.VisionInterop (in Cognex.VisionPro.VisionInterop.dll) Version: 79.0.0.0
Syntax
Parameters
- region
- Type: Cognex.Vision IRegion
The Vision IRegion to be copied from.
Return Value
Type: ICogRegionA VisionPro ICogRegion that has the equivalent dimensions and selected space name as the provided Vision IRegion.
Exceptions
| Exception | Condition |
|---|---|
| [System.ArgumentException] | If the provided IRegion is not a RectangleAffine or Rectangle. |
Remarks
Providing an argument that is null will result in a return that is null as well. In other words, a null converts to a null.
See Also