Returns/sets the scaling of this transform. When scaling is set the rotation, skew, and aspect remain unchanged.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Property Value
Type: DoubleEvents
| Event Type | Reason |
|---|---|
| CogTransform2DLinear Changed | Fires when the scaling changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| 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