DpiAwareness.GetWindowDpiScale(IntPtr) Method

Definition

Gets the DPI scale of the given window.

public:
[System::Runtime::CompilerServices::Extension]
 static double GetWindowDpiScale(IntPtr hwnd);
public static double GetWindowDpiScale (this IntPtr hwnd);
static member GetWindowDpiScale : nativeint -> double
<Extension()>
Public Function GetWindowDpiScale (hwnd As IntPtr) As Double

Parameters

hwnd
IntPtr

nativeint

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

Returns

The window's DPI scale.

Applies to