This is an interface for capturable elements.
Methods
-
This method is used to capture the element view.
Name Type Description canvasHTMLCanvasElement The HTML Canvas element to draw the view of the capturable element.
pixelRationumber The pixel ratio to use for over-sampling for high-resolution displays, the default is
window.devicePixelRatio.callbackfunction(HTMLCanvasElement) A callback function to call once the result of capture is ready.
opt_errbackfunction(string) optional A callback function to call if error occurred during capture.