Html2Canvas
Wisej.Web.Ext.Html2Canvas.Html2Canvas
Last updated
Wisej.Web.Ext.Html2Canvas.Html2Canvas
Last updated
Namespace: Wisej.Web.Ext.Html2Canvas
Assembly: Wisej.Web.Ext.Html2Canvas (2.0.0.0)
Implementation of the html2canvas (https://html2canvas.hertzen.com/) library. It's a singleton instance that can take a screenshot of a specific control or the entire browser and send the image back to the server.
Usage is quite easy:
Takes a screenshot of the browser.
Throws:
If any of the arguments is null.
Takes a screenshot of the browser.
Parameter | Type | Description |
options | The Html2CanvasOptions to pass to the html2canvas call. | |
callback | Callback method that receives the Image object. |
Throws:
If any of the arguments is null.
Takes a screenshot of the specified Control.
Parameter | Type | Description |
target | ||
callback | Callback method that receives the Image object. |
Throws:
If any of the arguments is null.
Takes a screenshot of the specified Control.
Parameter | Type | Description |
target | ||
options | The Html2CanvasOptions to pass to the html2canvas call. | |
callback | Callback method that receives the Image object. |
Throws:
If any of the arguments is null.
Asynchronously returns an Image that represents a screenshot of the browser.
Parameter | Type | Description |
options | The Html2CanvasOptions to pass to the html2canvas call. |
Returns: Task. An awaitable Task that contains the screenshot.
Asynchronously returns an Image that represents a screenshot of the specified Control as it appears on the browser.
Parameter | Type | Description |
target | ||
options | The Html2CanvasOptions to pass to the html2canvas call. |
Returns: Task. An awaitable Task that contains the screenshot.