Sdílet prostřednictvím


DpiAwareness.GetMonitorDpi(IntPtr, Double, Double) Method

Definition

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

hmonitor
IntPtr

nativeint

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

dpiX
Double

The monitor's x-coordinate (or horizontal) DPI.

dpiY
Double

The monitor's y-coordinate (or vertical) DPI.

Applies to