DpiAwareness.GetWindowDpi(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the DPI of the given window.
public:
[System::Runtime::CompilerServices::Extension]
static double GetWindowDpi(IntPtr hwnd);
public static double GetWindowDpi (this IntPtr hwnd);
static member GetWindowDpi : nativeint -> double
<Extension()>
Public Function GetWindowDpi (hwnd As IntPtr) As Double
Parameters
Returns
The window's DPI.