If application scaling is enabled and the application is not dpi-aware, the size of the window increases in the same proportion, along with the offsets and sizes of all UI elements it contains.īy default, the DWM does not perform scaling for non-dpi-aware applications when the user sets the dpi to 120, but does perform scaling when the dpi is set to a custom value of 144 or higher. The offset of an application window from the top edge and left edge of the screen increases by 25 percent. In effect, when the user sets the scale factor to 120 dpi, a vertical or horizontal inch on the screen becomes bigger by 25 percent. This scaling can be performed automatically by the DWM for the desktop and for applications that do not explicitly ask not to be scaled. However, scaling is applied to the size and location of UI elements. With dpi scaling, the number of physical pixels on the screen remains the same. For example, on a monitor 12 inches wide, at a horizontal resolution of 1280 pixels, a horizontal line of 96 pixels extends about 9/10 of an inch.Ĭhanging the dpi setting is not the same as changing the screen resolution. The exact measure of an "inch" depends on the size and physical resolution of the monitor. The default dpi setting is 96, which means that 96 pixels occupy a width or height of one notional inch. This topic contains the following sections: Microsoft UI Automation client applications must take this feature into account. In Windows Vista and later, the Desktop Window Manager (DWM) performs default scaling for all applications that do not handle their own scaling. In earlier versions of Windows, the scaling had to be implemented by applications. Windows Vista and later versions of the operating system enable users to change the dots per inch (dpi) setting so that most UI elements on the screen appear larger.
0 Comments
Leave a Reply. |