ScaleHelper Class
A helper class containing members for high DPI scaling, especially when using per-monitor DPI awareness.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static class ScaleHelper
<ExtensionAttribute>
Public NotInheritable Class ScaleHelper
[ExtensionAttribute]
public ref class ScaleHelper abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type ScaleHelper = class end
- Inheritance
- Object ScaleHelper
| DefaultFont |
Practically gets the same value as Control.DefaultFont, but the result of this property is always in points that can be scaled correctly.
|
| DefaultScale |
Gets the scale factor for 100% (1.0) scaling.
|
| IsDefaultSystemScale |
Gets whether the SystemScale property returns the default 100% (1.0) scale factor.
|
| IsProcessPerMonitorAware |
Gets whether the process is per-monitor DPI aware. Per-monitor DPI awareness is available on Windows 8.1 or later.
|
| IsThreadPerMonitorAware |
Gets whether the current thread is per-monitor DPI aware. Thread-based per-monitor DPI awareness is available on Windows 10 Anniversary Update (1607) or later.
|
| PerMonitorDpiAwarenessVersion |
Gets the version of per-monitor DPI awareness of the current thread.
Per-monitor DPI awareness V1 is available on Windows 8.1 or later, whereas
per-monitor DPI awareness V2 and is available on Windows 10 Anniversary Update (1607) or later.
|
| SystemScale |
If the application is DPI aware, gets the scale factor of the primary display at the time of the application startup. Otherwise, it returns the default scale factor of 100% (1.0).
|