Instance Method

scaleXBy:yBy:

Applies scaling factors to each axis of the receiver’s transformation matrix.

Declaration

- (void)scaleXBy:(CGFloat)scaleX yBy:(CGFloat)scaleY;

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.

See Also

Accumulating Transformations

- rotateByDegrees:

Applies a rotation factor (measured in degrees) to the receiver’s transformation matrix.

- rotateByRadians:

Applies a rotation factor (measured in radians) to the receiver’s transformation matrix.

- scaleBy:

Applies the specified scaling factor along both x and y axes to the receiver’s transformation matrix.

- translateXBy:yBy:

Applies the specified translation factors to the receiver’s transformation matrix.

- appendTransform:

Appends the specified matrix to the receiver’s matrix.

- prependTransform:

Prepends the specified matrix to the receiver’s matrix.

- invert

Replaces the receiver’s matrix with its inverse matrix.