static void SaveBitmap(Bitmap bmp, string filePath) { try { bmp.Save(filePath); } catch (Exception e) { Console.Error.Write(e.Message); Environment.Exit(1); } }