XR8.CanvasScreenshot.takeScreenshot()
XR8.CanvasScreenshot.takeScreenshot({ onProcessFrame })
Description
Returns a Promise that when resolved, provides a buffer containing the JPEG compressed image. When rejected, an error message is provided.
Parameters
Parameter | Description |
---|---|
onProcessFrame [Optional] | Callback where you can implement additional drawing to the screenshot 2d canvas. |