CogTransform2DLinear SetScalingAspectRotationSkewTranslation Method Cognex VisionPro 9.25 SR1
Set this transform from the given parameters. Rotation and Skew are in radians.

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

public void SetScalingAspectRotationSkewTranslation(
	double scaling,
	double aspect,
	double rotation,
	double skew,
	double translationX,
	double translationY
)

Parameters

scaling
Type: System Double

The Scaling factor.

aspect
Type: System Double

The aspect ratio.

rotation
Type: System Double

The angle of Rotation in radians.

skew
Type: System Double

The skew angle in radians.

translationX
Type: System Double

The translation along the x-axis.

translationY
Type: System Double

The translation along the y-axis.

Events

Event TypeReason
CogTransform2DLinear Changed

Fires when you use this property to set the scaling, aspect, rotation, skew, or translation.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    scaling is zero.

    ArgumentException

    aspect is zero.

    ArgumentException

    skew is π/2 or −π/2 (when normalized to the range between π and −π).

    Remarks

    Sets the scaling, aspect, rotation, skew, and/or translation of this transformation object.

    See Also