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