Function

CGContextGetCTM

Returns the current transformation matrix.

Declaration

CGAffineTransform CGContextGetCTM(CGContextRef c);

Parameters

c

A graphics context.

Return Value

The transformation matrix for the current graphics state of the specified context.

See Also

Transforming User Space

CGContextConcatCTM

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

CGContextRotateCTM

Rotates the user coordinate system in a context.

CGContextScaleCTM

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

CGContextTranslateCTM

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