format (optional) | string | Image compression format (defaults to png). |
quality (optional) | integer | Compression quality from range [0..100] (jpeg only). |
clip (optional) | Viewport | Capture the screenshot of a given region only. |
fromSurface (optional) | boolean | Capture the screenshot from the surface, rather than the view. Defaults to true. |
captureBeyondViewport (optional) | boolean | Capture the screenshot beyond the viewport. Defaults to false. |
optimizeForSpeed (optional) | boolean | Optimize image encoding for speed, not for resulting size (defaults to false) |