Instance Property

userSpaceToDeviceSpaceTransform

Returns an affine transform that maps user space coordinates to device space coordinates.

Declaration

var userSpaceToDeviceSpaceTransform: CGAffineTransform { get }

Parameters

c

A graphics context.

Return Value

The affine transforms that maps the user space of the graphics context to the device space.

See Also

Converting Between Coordinate Spaces

func convertToDeviceSpace(CGPoint) -> CGPoint

Returns a point that is transformed from user space coordinates to device space coordinates.

func convertToUserSpace(CGPoint) -> CGPoint

Returns a point that is transformed from device space coordinates to user space coordinates.

func convertToDeviceSpace(CGRect) -> CGRect

Returns a rectangle that is transformed from user space coordinate to device space coordinates.

func convertToUserSpace(CGRect) -> CGRect

Returns a rectangle that is transformed from device space coordinate to user space coordinates.

func convertToDeviceSpace(CGSize) -> CGSize

Returns a size that is transformed from user space coordinates to device space coordinates.

func convertToUserSpace(CGSize) -> CGSize

Returns a size that is transformed from device space coordinates to user space coordinates.