private void SaveBMP(Bitmap bmp, string path)
{
try
{
//bmp.Save(path);
}
catch
{
/*Bitmap bitmap = new Bitmap(bmp.Width, bmp.Height, bmp.PixelFormat);
Graphics g = Graphics.FromImage(bitmap);
g.DrawImage(bmp, new Point(0, 0));
g.Dispose();
bmp.Dispose();
//bitmap.Save(path);
bmp = bitmap; // preserve clone */
}
}