DpiAwareness.GetMonitorDpiScale(IntPtr, Double, Double) Method

Definition

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

hmonitor
IntPtr

nativeint

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

dpiXScale
Double

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

dpiYScale
Double

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

Applies to