Class DpiUtilities
- Namespace
- SharpVectors.Runtime
- Assembly
- SharpVectors.Runtime.Wpf.dll
public static class DpiUtilities
- Inheritance
-
DpiUtilities
- Inherited Members
Fields
- DefaultPixelsPerInch
This is the default PPI value used in WPF and Windows.
Properties
Methods
- GetMonitorEffectiveDpi(IntPtr, out uint, out uint)
Get the Effective DPI of a monitor after a user's accessibility preferences have been applied.
- GetScreenScalingFactor(string)
Gets scaling factor for a monitor This is defined as current pixel size relative to effective DPI
- GetSystemEffectiveDpi(out uint, out uint)
Get the System Effective DPI.
- GetVirtualPixelScale(IntPtr)
Gets the virtual pixel scale for a window. This is essentially the Effective DPI of the monitor versus a standard 96 DPI.
- GetVirtualPixelScale(Window)
Gets the virtual pixel scale for a window. This is essentially the Effective DPI of the monitor versus a standard 96 DPI.
- GetVirtualPixelScaleByMonitor(IntPtr)
Gets the virtual pixel scale for a monitor. This is essentially the Effective DPI of the monitor versus a standard 96 DPI.
- GetWindowEffectiveDpi(IntPtr, out uint, out uint)
Get the Effective DPI of a windows (monitor) after a user's accessibility preferences have been applied.
- GetWindowEffectiveDpi(Window, out uint, out uint)
Get the Effective DPI of a windows (monitor) after a user's accessibility preferences have been applied.
- GetWindowScale(IntPtr)
Gets the window (monitor) scale versus System DPI.
- GetWindowScale(Visual)
Gets the window (monitor) scale versus System DPI.
- GetWindowScale(Window)
Gets the window (monitor) scale versus System DPI.