Interface: ICapturable

H.util.ICapturable

This is an interface for capturable elements.

Methods

capture (canvas, pixelRatio, callback, opt_errback)

This method is used to capture the element view.

Name Type Description
canvas HTMLCanvasElement

The HTML Canvas element to draw the view of the capturable element.

pixelRatio number

The pixel ratio to use for over-sampling for high-resolution displays, the default is window.devicePixelRatio.

callback function(HTMLCanvasElement)

A callback function to call once the result of capture is ready.

opt_errback function(string) optional

A callback function to call if error occurred during capture.