Module: screenshooter

Screen shooter add-on.

Summary

Methods

Detailed Description

Methods

shot(formatopt, qualityopt)

Take a screenshot and download as screenshot.png image.
Parameters:
Name Type Attributes Default Description
format String <optional>
"image/png" The MIME image format ("image/png", "image/jpeg", "image/webp" and so on)
quality Number <optional>
1.0 Number between 0 and 1 for types: "image/jpeg", "image/webp"
Source:
Example
var m_scrn = require("screenshooter");
m_scrn.shot();