Method GetVirtualPixelScale
- Namespace
- SharpVectors.Runtime
- Assembly
- SharpVectors.Runtime.Wpf.dll
GetVirtualPixelScale(Window)
Gets the virtual pixel scale for a window. This is essentially the Effective DPI of the monitor versus a standard 96 DPI.
public static DpiScale GetVirtualPixelScale(Window window)
Parameters
window
WindowThe window.
Returns
GetVirtualPixelScale(IntPtr)
Gets the virtual pixel scale for a window. This is essentially the Effective DPI of the monitor versus a standard 96 DPI.
public static DpiScale GetVirtualPixelScale(IntPtr hwnd)
Parameters
hwnd
IntPtrThe HWND.