Transform2DLinear Scaling Property Cognex VisionPro 9.21
Get

Returns/sets the scaling of this transform. When scaling is set the rotation, skew, and aspect remain unchanged.

Set

Sets Scaling.

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

public double Scaling { get; set; }

Property Value

Type: Double
Default Value: 1
Exceptions

ExceptionCondition
ArgumentExceptionThe 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.

Remarks

Changed Raised when the value of this property changes.

See Also