Create a Deep Copy of the provided ICogRegion VisionPro object in the form of an IRegion Vision object, maintaining
dimension equivalence and selected space name. Graphics properties are not converted; the IRegion 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.VisionPro ICogRegion
The VisionPro ICogRegion to be copied from.
Return Value
Type: IRegionA Vision IRegion that has the equivalent dimensions and selected space name as the provided VisionPro ICogRegion.
Exceptions
| Exception | Condition |
|---|---|
| [System.ArgumentException] | If the provided ICogRegion is not a CogRectangleAffine or CogRectangle. |
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