
Poking around like a 🦑
Pinned Loading
-
-
-
-
WPF, Forms: Get the scaling/DPI scal...
WPF, Forms: Get the scaling/DPI scale factor on the device currently the application without the need of any UI elements using reflection. Useful for GDI stuff where you want to predict the composition. 1public static class DpiScale
2{
3private static readonly float WindowsDefaultDpi = 96.0f;
4private enum Axis {X, Y};
5private static float GetScaleForAxis(Axis axis)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.