## Description

Provides a camera pipeline module that can generate screenshots of the current scene.

## Functions

| Function | Description |
| --- | --- |
| [configure](https://8thwall.org/docs/api/engine/canvasscreenshot/configure) | Configures the expected result of canvas screenshots. |
| [pipelineModule](https://8thwall.org/docs/api/engine/canvasscreenshot/pipelinemodule) | Creates a camera pipeline module that, when installed, receives callbacks on when the camera has started and when the canvas size has changed. |
| [setForegroundCanvas](https://8thwall.org/docs/api/engine/canvasscreenshot/setforegroundcanvas) | Sets a foreground canvas to be displayed on top of the camera canvas. This must be the same dimensions as the camera canvas. |
| [takeScreenshot](https://8thwall.org/docs/api/engine/canvasscreenshot/takescreenshot) | Returns a Promise that when resolved, provides a buffer containing the JPEG compressed image. When rejected, an error message is provided.
