CogTransform2DLinear Scaling Property Cognex VisionPro
Returns/sets the scaling of this transform. When scaling is set the rotation, skew, and aspect remain unchanged.

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

public double Scaling { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogTransform2DLinear Changed

Fires when the scaling changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    The new scaling value is zero.

    Remarks

    Sets or gets the uniform scaling of this transformation object. When you set the scaling, the Rotation, Skew, and Aspect values remain unchanged. If Aspect equals one, then Scaling, ScalingX, and ScalingY are equal. Otherwise, Scaling is equal to ScalingX, and Aspect is equal to ScalingY divided by ScalingX. Notice that changes to this property affect both ScalingX and ScalingY.

    In the standard transformation matrix, scaling is represented by the symbol S.

    Default Value: 1

    See Also