DpiAwareness.GetMonitorDpi(IntPtr, Double, Double) Methode

Definition

Ruft den dpi-Typ des angegebenen Monitors ab.

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)

Parameter

hmonitor
IntPtr

Der IntPtr des Monitors, von dem der dpi-Wert erhalten werden soll.

dpiX
Double

Der x-Koordinate (oder horizontale) dpi des Monitors.

dpiY
Double

Der y-Koordinate (oder vertikale) dpi des Monitors.

Gilt für