Transform2DComposed Replace Method Cognex VisionPro 9.22 SR1

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.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax

public ITransform2D Replace(
	int index,
	ITransform2D replacement,
	bool copy
)

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: ITransform2D
Exceptions

ExceptionCondition
ArgumentExceptionindex is < 0 or > Count -1
ArgumentExceptionreplacement 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