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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software