Exemple #1
0
 /// <summary>
 /// Takes a screenshot and saves into a file path
 /// </summary>
 /// <param name="filename">path where the screenshot is saved</param>
 public void _render(string filename)
 {
     if (browser != null)
     {
         browser.Render(filename, zoomFactor);
     }
 }
Exemple #2
0
        /// <summary>
        /// Takes a screenshot and saves into a file path
        /// </summary>
        /// <param name="filename">path where the screenshot is saved</param>
        public void _render(string filename)
        {
            Utils.Debug("_render " + filename);
            if (browser != null)
            {
//                browser.Render(filename, zoomFactor);
                Utils.Debug("_render zoomFactor: " + zoomFactor);
                Utils.Debug("_render width: " + this.ClipRect.Width);
                Utils.Debug("_render height: " + this.ClipRect.Height);
                Utils.Debug("_render top: " + this.ClipRect.Top);
                Utils.Debug("_render left: " + this.ClipRect.Left);
                browser.Render(filename, zoomFactor, this.ClipRect);
            }
            Utils.Debug("_render finished");
        }