scaleX(by:yBy:)
Applies scaling factors to each axis of the receiver’s transformation matrix.
Declaration
func scaleX(by scaleX: Double, yBy scaleY: Double)Parameters
- scaleX:
The scaling factor to apply to the x axis.
- scaleY:
The scaling factor to apply to the y axis.
Discussion
After invoking this method, applying the receiver’s matrix modifies the unit length on the x axis by a factor of scaleX and the y axis by a factor of scaleY, in addition to performing all previous transformations. A value of 1.0 for either axis scales the content on that axis to the same size.