BrowserTools.Screenshot.SaveBitmap C# (CSharp) Метод

SaveBitmap() статический приватный Метод

static private SaveBitmap ( Bitmap bmp, string filePath ) : void
bmp System.Drawing.Bitmap
filePath string
Результат void
        static void SaveBitmap(Bitmap bmp, string filePath)
        {
            try {
                bmp.Save(filePath);
            }
            catch (Exception e) {
                Console.Error.Write(e.Message);
                Environment.Exit(1);
            }
        }