Returns a transform that maps two dimensional points
from the 'From' space to the 'To' space.
The special string "." is accepted as an alias
for the SelectedSpaceName of this image.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 79.0.0.0
Syntax
Parameters
- ToSpaceName
- Type: System String
The name of the two dimensional coordinate space to transform the point to. The special string "." is accepted as an alias for the SelectedSpaceName of this image.
- FromSpaceName
- Type: System String
The name of the two dimensional coordinate space to transform the point from. The special string "." is accepted as an alias for the SelectedSpaceName of this image.
Return Value
Type: ICogTransform2DImplements
ICogImage GetTransform(String, String)Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If ToSpaceName is null. |
| ArgumentNullException | If FromSpaceName is null. |
| CogImageNoTreeException | If CoordinateSpaceTree is null. |
| CogSpaceTreeNameNotInTreeException | If either space name is not found in the |
See Also