<分区>
我有下面的代码,我想让它保存为 jpeg 文件格式,而不是 bmp。
Bitmap current = (Bitmap)_latestFrame.Clone();
using (SaveFileDialog sfd = new SaveFileDialog())
{
sfd.Filter = "*.bmp|*.bmp";
if (sfd.ShowDialog() == DialogResult.OK)
{
current.Save(sfd.FileName);
}
}
current.Dispose();
}
你知道我应该改变什么来实现它吗?我尝试使用 Image.Format,但没有用。