Function

CGContextTranslateCTM

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

Declaration

void CGContextTranslateCTM(CGContextRef c, CGFloat tx, CGFloat ty);

Parameters

c

A graphics context.

tx

The amount to displace the x-axis of the coordinate space, in units of the user space, of the specified context.

ty

The amount to displace the y-axis of the coordinate space, in units of the user 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.

CGContextScaleCTM

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