Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Controls/tests/TestCases.Shared.Tests/UITest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Reflection;
using System.Text.RegularExpressions;
using ImageMagick;
using ImageMagick.Drawing;
using NUnit.Framework;
using NUnit.Framework.Constraints;
using UITest.Appium;
Expand Down Expand Up @@ -662,7 +663,7 @@ byte[] TakeScreenshot()
var bytes = App.Screenshot();

// Draw a rounded rectangle with the app window bounds as mask
using var surface = new MagickImage(MagickColors.Transparent, width, height);
using var surface = new MagickImage(MagickColors.Transparent, (uint)width, (uint)height);
new Drawables()
.RoundRectangle(0, 0, width, height, cornerRadius, cornerRadius)
.FillColor(MagickColors.Black)
Expand Down