private void ConvertToBitmap(string bmpfile, string jpgfile) { Image bmp = Image.FromFile(bmpfile); bmp.Save(jpgfile, System.Drawing.Imaging.ImageFormat.Jpeg); bmp.Dispose(); }