CGAffineTransformScale(_:_:_:)
Returns an affine transformation matrix constructed by scaling an existing affine transform.
Declaration
func CGAffineTransformScale(_ t: CGAffineTransform, _ sx: CGFloat, _ sy: CGFloat) -> CGAffineTransformParameters
- t:
An existing affine transform.
- sx:
The value by which to scale x values of the affine transform.
- sy:
The value by which to scale y values of the affine transform.
Return Value
A new affine transformation matrix.
Discussion
You use this function to create a new affine transformation matrix by adding scaling values to an existing affine transform. The resulting structure represents a new affine transform, which you can use (and reuse, if you want) to scale a coordinate system.