Platforms to show: All Mac Windows Linux Cross-Platform

Back to DesktopWindow class.

DesktopWindow.BackingScaleFactorMBS as double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Window MBS Util Plugin 21.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the scale factor representing the number of backing store pixels corresponding to each linear unit in window space on this window.

This is generally only necessary when building a bitmap context or image whose resolution needs to match that of a particular Window. Note that a Window's backing scale factor can change over time, such as when the window moves from one display to another, or when a display's resolution changes, so clients should not cache the value returned by this function.

If platform does not support scaling factor, we return 1.0. (on Windows, Linux and older Mac OS X)
Supported for Carbon and Cocoa windows.

For apps which are not enabled for retina support, the function returns 1. So you only see 2 here if app is Cocoa, display is retina and info.plist has the NSHighResolutionCapable key.

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...