xtd 0.2.0
Loading...
Searching...
No Matches

◆ scale_factor()

double xtd::forms::screen::scale_factor ( ) const
noexcept

Gets the scale factor of the display.

Returns
The scale factor of the display.
Remarks
This value is computed from pixels_per_inch() for the display divided by get_standard_pixels_per_inch().
If scale factor is equal to 1.0 is a standard display; greater than 1.0 is a high DPI display.
See get_standard_pixels_per_inch() for more informations.
Examples
screen_informations.cpp.