我正在尝试将图像重新缩放 10 倍并保存它
System.Drawing.Bitmap bmi
var scaleWidth = (int)(bmi.Width * 0.1);
var scaleHeight = (int)(bmi.Height * 0.1);
Rectangle f = new Rectangle(0, 0, scaleWidth, scaleHeight);
Graphics graph = Graphics.FromImage(bmi);
graph.DrawImage(bmi, new Rectangle(
((int)scaleWidth - scaleWidth) / 2,
((int)scaleHeight - scaleHeight) / 2,
scaleWidth, scaleHeight));
string a = "a.jpg";
bmi.Save(a);
但是当我这样做时,它会保存在原始图像上绘制的缩放图像,我不确定如何纠正这个问题