I have the code below, and I'd like it to make it save as jpeg file format, instead of 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();
}
Do you have any idea on what I should change to make it? I tried using Image.Format, but that didn't work.