Function

CGContextScaleCTM

Changes the scale of the user coordinate system in a context.

Declaration

void CGContextScaleCTM(CGContextRef c, CGFloat sx, CGFloat sy);

Parameters

c

A graphics context.

sx

The factor by which to scale the x-axis of the coordinate space of the specified context.

sy

The factor by which to scale the y-axis of the coordinate space of the specified context.

See Also

Transforming User Space

CGContextConcatCTM

Transforms the user coordinate system in a context using a specified matrix.

CGContextGetCTM

Returns the current transformation matrix.

CGContextRotateCTM

Rotates the user coordinate system in a context.

CGContextTranslateCTM

Changes the origin of the user coordinate system in a context.