BitrixAQA.Selenium.General.ScreenCapture.CaptureWindowToFile C# (CSharp) Method

CaptureWindowToFile() public method

Captures a screen shot of a specific window, and saves it to a file
public CaptureWindowToFile ( IntPtr handle, string filename, ImageFormat format ) : void
handle System.IntPtr
filename string
format System.Drawing.Imaging.ImageFormat
return void
        public void CaptureWindowToFile(IntPtr handle, string filename, ImageFormat format)
        {
            Image img = CaptureWindow(handle);
            img.Save(filename, format);
        }