Method GetWindowScale
- Namespace
- SharpVectors.Runtime
- Assembly
- SharpVectors.Runtime.Wpf.dll
GetWindowScale(Window)
Gets the window (monitor) scale versus System DPI.
public static DpiScale GetWindowScale(Window window)
Parameters
window
WindowThe window.
Returns
Remarks
When developing a DPI-aware application, this is useful for applying a ScaleTransform to your window so all fonts and graphics are scaled and rendered beautifully based on the physical capabilities of the display and the accessibility settings of the user.
GetWindowScale(Visual)
Gets the window (monitor) scale versus System DPI.
public static DpiScale GetWindowScale(Visual visual)
Parameters
visual
VisualThe window.
Returns
Remarks
When developing a DPI-aware application, this is useful for applying a ScaleTransform to your window so all fonts and graphics are scaled and rendered beautifully based on the physical capabilities of the display and the accessibility settings of the user.
GetWindowScale(IntPtr)
Gets the window (monitor) scale versus System DPI.
public static DpiScale GetWindowScale(IntPtr hwnd)
Parameters
hwnd
IntPtrThe window.
Returns
Remarks
When developing a DPI-aware application, this is useful for applying a ScaleTransform to your window so all fonts and graphics are scaled and rendered beautifully based on the physical capabilities of the display and the accessibility settings of the user.