Fix for WPF DPI issue on .net 3.1.19 (#13551)

This commit is contained in:
Jaime Bernardo
2021-10-01 14:03:04 +01:00
committed by GitHub
parent 34e81fdf87
commit b0d35f5ef8
4 changed files with 11 additions and 0 deletions

View File

@@ -19,6 +19,9 @@ namespace ImageResizer.Utilities
[DllImport("user32.dll")]
internal static extern uint SendInput(uint nInputs, INPUT[] pInputs, int cbSize);
[DllImport("user32.dll", SetLastError = true)]
internal static extern bool SetProcessDPIAware();
[StructLayout(LayoutKind.Sequential)]
public struct INPUT
{