Renders an HTML element to a canvas so that a screenshot can be generated.
The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.
The HTML element which will be rendered to the canvas. Use the root element to render the entire window.
Renders an HTML element to a canvas so that a screenshot can be generated.
The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.
The HTML element which will be rendered to the canvas. Use the root element to render the entire window.
The options object that controls how the element will be rendered.