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
windowWindowThe 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
hwndIntPtrThe HWND.