Table of Contents

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 Window

The window.

Returns

DpiScale

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 IntPtr

The HWND.

Returns

DpiScale