Detector.Motion.Form1.SaveBMP C# (CSharp) Method

SaveBMP() private method

private SaveBMP ( Bitmap bmp, string path ) : void
bmp Bitmap
path string
return void
        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 */
            }
        }