Skip to content

Fix Magick.NET v14 breaking API changes in UITest.cs#34174

Merged
PureWeen merged 2 commits intodependabot/nuget/src/TestUtils/src/VisualTestUtils.MagickNet/Magick.NET-Q8-AnyCPU-14.10.2from
copilot/sub-pr-34169
Feb 22, 2026
Merged

Fix Magick.NET v14 breaking API changes in UITest.cs#34174
PureWeen merged 2 commits intodependabot/nuget/src/TestUtils/src/VisualTestUtils.MagickNet/Magick.NET-Q8-AnyCPU-14.10.2from
copilot/sub-pr-34169

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 21, 2026

After bumping Magick.NET-Q8-AnyCPU from 13.5.0 to 14.10.2, UITest.cs failed to compile due to two v14 breaking changes not addressed by the initial fix.

Changes

  • ImageMagick.Drawing namespace: Drawables and all drawing classes moved out of ImageMagick into ImageMagick.Drawing in v14. Added the missing using ImageMagick.Drawing;.
  • MagickImage constructor: (IMagickColor, uint width, uint height) — width/height params changed from int to uint. Added (uint) casts on the int values sourced from GetRect().
// Before (v13)
using var surface = new MagickImage(MagickColors.Transparent, width, height);
new Drawables()  // CS0246: type not found — Drawables moved to ImageMagick.Drawing

// After (v14)
using ImageMagick.Drawing;
// ...
using var surface = new MagickImage(MagickColors.Transparent, (uint)width, (uint)height);
new Drawables()  // resolves correctly

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Magick.NET-Q8-AnyCPU from 13.5.0 to 14.10.2 Fix Magick.NET v14 breaking API changes in UITest.cs Feb 21, 2026
Copilot AI requested a review from PureWeen February 21, 2026 18:30
@PureWeen PureWeen marked this pull request as ready for review February 22, 2026 03:59
@PureWeen PureWeen merged commit 98dbc4d into dependabot/nuget/src/TestUtils/src/VisualTestUtils.MagickNet/Magick.NET-Q8-AnyCPU-14.10.2 Feb 22, 2026
2 of 3 checks passed
@PureWeen PureWeen deleted the copilot/sub-pr-34169 branch February 22, 2026 03:59
@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants