所以我的程序正在修复一些图像伪像,它是这样的: void FixFile(string path) var bmp = new WriteableBitmap(new BitmapImage(new Uri(path))); var encoder = new JpegBitmapEncoder();
我引用了来自一个CoreCompat.System.Drawing.v2核心项目的runtime.linux-x64.CoreCompat.System.Drawing和.NET,并执行了以下操作:
Bitmapframe = new Bitmap($"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\\images\\image_0.bmposboxes/Downloads/Test2/ImageResizeNetCore/P