The extension component uses the Html2Canvas library. This Wisej.NET component can take a screenshot of a specific control or the entire browser and send the image back to the server.
How to Use
The Html2Canvas extension can be added to a Wisej.NET project using NuGet Package Manager.
Code sample
// Take a screenshot of a Control
Html2Canvas.Screenshot(this.panel1, (image) => { image.Save(@"\images\control.png"); });
// Take a screenshot of a Control using asynchronous code
var image = await Html2Canvas.ScreenshotAsync(this);
image.Save (@"\images\control_async.png");
// Take a screenshot of the browser
Html2Canvas.Screenshot((image) => { image.Save(@"\images\browser.png"); });