using ImageMagick; using (MagickImage image = new MagickImage("input.svg")) { image.Scale(new Percentage(60)); image.Write("output.png"); }
并通过添加imageMagick
dotnet add package Magick.NET.Core --version 8.3.3
error CS0246: The type or namespace name 'MagickImage' could not be found (are you missing a using directive or an assembly reference?
我该如何解决这个问题?我缺少什么导入/使用?
对于。NET Core 3.1应用程序,使用Visual Studio 2019,我使用了特定的构建 Magick.NET-Q16-AnyCPU Magick.NET.Core . 使用Q16,我可以毫无错误地构建。我不确定NuGet和跑步是不是一回事 dotnet add package ... 虽然
Magick.NET-Q16-AnyCPU
Magick.NET.Core
dotnet add package ...