DpiAwareness.GetWindowDpiScale(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 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
Returns
The window's DPI scale.