/// <summary> /// Captures the web page to file. The file extension is used to /// determine the image format. The following image formats are /// supported (if the encoder is available on the machine): /// jpg, tif, gif, png, bmp. /// If you want more controle over the output, use <seealso cref="CaptureWebPage.CaptureWebPageToFile(string, bool, bool, int, int)"/> /// </summary> /// <param name="filename">The filename.</param> public void CaptureWebPageToFile(string filename) { CaptureWebPage captureWebPage = new CaptureWebPage(this); captureWebPage.CaptureWebPageToFile(filename, false, false, 100, 100); }