Function

CGContextConvertSizeToDeviceSpace

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

Declaration

CGSize CGContextConvertSizeToDeviceSpace(CGContextRef c, CGSize size);

Parameters

c

A graphics context.

size

The size, in user space coordinates, to transform.

Return Value

The size in device space coordinates.

See Also

Converting Between Device Space and User Space

CGContextGetUserSpaceToDeviceSpaceTransform

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

CGContextConvertPointToDeviceSpace

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

CGContextConvertPointToUserSpace

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

CGContextConvertSizeToUserSpace

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

CGContextConvertRectToDeviceSpace

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

CGContextConvertRectToUserSpace

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