Applies scaling factors to each axis of the receiver’s transformation matrix.
SDKs
- macOS 10.0+
- Mac Catalyst 13.0+
Framework
- Foundation
Declaration
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 scale
and the y axis by a factor of scale
, 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.