diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 8095694..1d20dfd 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,7 +1,7 @@ - net7.0-windows + net9.0-windows7.0 enable enable diff --git a/src/COMPASS.csproj b/src/COMPASS.csproj index f266640..494834f 100644 --- a/src/COMPASS.csproj +++ b/src/COMPASS.csproj @@ -2,7 +2,7 @@ WinExe - net7.0-windows + net9.0-windows true COMPASS COMPASS @@ -65,23 +65,23 @@ - - - - - - + + + + + + - - + + - - + + - - + + diff --git a/src/Services/CoverService.cs b/src/Services/CoverService.cs index 3b56edc..34a0ea9 100644 --- a/src/Services/CoverService.cs +++ b/src/Services/CoverService.cs @@ -227,7 +227,7 @@ public static IMagickImage GetCroppedScreenShot(IWebDriver driver, Point locatio var mf = new MagickImageFactory(); using var img = mf.Create(ss.AsByteArray); img.Resize(3000, 3000); //same size as headless window - return img.Clone(location.X, location.Y, (uint)size.Width, (uint)size.Height); + return img.CloneArea(location.X, location.Y, (uint)size.Width, (uint)size.Height); } } }