Replaces the transform at the given index with the passed Replacement transform. If Copy is True, the Replacement transform is added by value, otherwise, it is added by reference.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.25.1.0
Syntax
Parameters
- index
- Type: System Int32
The zero-based index of the transformation to replace.
- replacement
- Type: Cognex.Vision ITransform2D
The new transformation.
- copy
- Type: System Boolean
If true, replacement is copied into this object. Otherwise, it is added by reference.
Return Value
Type: ITransform2DExceptions
| Exception | Condition |
|---|---|
| ArgumentException | index is < 0 or > Count -1 |
| ArgumentException | replacement is null. |
Remarks
Changed Raised when the transformation is replaced.
Remarks
Replaces the specified transformation in this composed transformation's list of transformations with the supplied transformation. If copy is true, the replacement transformation is added by value (copied). If copy is false, then it is added by reference. This function returns the transformation being replaced.
See Also