Table of Contents

Method GetWindowEffectiveDpi

Namespace
SharpVectors.Runtime
Assembly
SharpVectors.Runtime.Wpf.dll

GetWindowEffectiveDpi(Window, out uint, out uint)

Get the Effective DPI of a windows (monitor) after a user's accessibility preferences have been applied.

public static void GetWindowEffectiveDpi(Window window, out uint dpiX, out uint dpiY)

Parameters

window Window

The window.

dpiX uint

The dpi x.

dpiY uint

The dpi y.

GetWindowEffectiveDpi(IntPtr, out uint, out uint)

Get the Effective DPI of a windows (monitor) after a user's accessibility preferences have been applied.

public static void GetWindowEffectiveDpi(IntPtr hwnd, out uint dpiX, out uint dpiY)

Parameters

hwnd IntPtr

The window.

dpiX uint

The dpi x.

dpiY uint

The dpi y.