Instance Property

backingScaleFactor

The backing scale factor.

Declaration

@property(readonly) CGFloat backingScaleFactor;

Discussion

The value of this property is 2.0 for high-resolution scaled display modes, and 1.0 for all other cases.

There are some scenarios where an application that is resolution-aware may want to reason on its own about the display environment it is running in.

It is important to note that the value of this property does not represent anything concrete, such as pixel density or physical size, because it can vary based on the configured display mode. For example, the display may be in a mirrored configuration that is still high-resolution scaled, resulting in pixel geometry that may not match the native resolution of the display device.

See Also

Converting Coordinates

- 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
- userSpaceScaleFactor

Returns the scale factor applied to the window.

Deprecated