DpiAwareness.GetMonitorDpiScale(IntPtr, Double, Double) 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 monitor.
public:
[System::Runtime::CompilerServices::Extension]
static void GetMonitorDpiScale(IntPtr hmonitor, [Runtime::InteropServices::Out] double % dpiXScale, [Runtime::InteropServices::Out] double % dpiYScale);
public static void GetMonitorDpiScale (this IntPtr hmonitor, out double dpiXScale, out double dpiYScale);
static member GetMonitorDpiScale : nativeint * double * double -> unit
<Extension()>
Public Sub GetMonitorDpiScale (hmonitor As IntPtr, ByRef dpiXScale As Double, ByRef dpiYScale As Double)
Parameters
- dpiXScale
- Double
The monitor's x-coordinate (or horizontal) DPI scale.
- dpiYScale
- Double
The monitor's y-coordinate (or vertical) DPI scale.