Instance Property

ctm

Returns the current transformation matrix.

Declaration

var ctm: CGAffineTransform { get }

Parameters

c

A graphics context.

Return Value

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

See Also

Working with the Current Transformation Matrix

func rotate(by: CGFloat)

Rotates the user coordinate system in a context.

func scaleBy(x: CGFloat, y: CGFloat)

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

func translateBy(x: CGFloat, y: CGFloat)

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

func concatenate(CGAffineTransform)

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