Instance Method

userSpaceScaleFactor

Returns the scale factor applied to the window.

Declaration

- (CGFloat)userSpaceScaleFactor;

Return Value

The scale factor applied to the window.

Discussion

Clients can multiply view coordinates by the returned scale factor to get a set of new coordinates that are scaled to the resolution of the target screen. For example, if the scale factor is 1.25 and the view frame size is 80 x 80, the actual size of the view frame is 100 x 100 pixels on the target screen.

See Also

Converting Coordinates

backingScaleFactor

The backing scale factor.

- backingAlignedRect:options:

Returns a backing store pixel aligned rectangle in window coordinates.

- convertRectFromBacking:

Converts a rect from its pixel aligned backing store coordinate system to the window’s coordinate system.

- convertRectToBacking:

Converts a rectangle from the window’s coordinate system to its pixel aligned backing store coordinate system.

- convertRectToScreen:

Converts the rectangle to the screen coordinate system from the window’s coordinate system.

- convertRectFromScreen:

Converts the rectangle from the screen coordinate system to the window’s coordinate system

- convertBaseToScreen:

Converts a given point from the window’s base coordinate system to the screen coordinate system.

Deprecated
- convertScreenToBase:

Converts a given point from the screen coordinate system to the window’s base coordinate system.

Deprecated