CogRectangleAffine SetFromRectangle Method Cognex VisionPro 9.23
Set parameters of this affine rectangle from the given rectangle and transformation.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax

public void SetFromRectangle(
	CogRectangle rectangle,
	CogTransform2DLinear newTransform
)

Parameters

rectangle
Type: Cognex.VisionPro CogRectangle

The rectangle to use as the basis for this affine rectangle. This is often a unit square..

newTransform
Type: Cognex.VisionPro CogTransform2DLinear

The transformation object to apply to rectangle set this affine rectangle.

Events

Event TypeReason
CogRectangleAffine Changed

Fires when the value of this property changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The rectangle is NULL.

    Remarks

    Sets parameters of this affine rectangle from the given rectangle and transformation.

    See Also