Sdílet prostřednictvím


DpiAwareness.GetWindowDpi(IntPtr) Method

Definition

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

hwnd
IntPtr

nativeint

The IntPtr of the window from which to get the DPI.

Returns

The window's DPI.

Applies to