OptionalbufferOptionalbufferThe width of the frame buffer, if a frame buffer grab.
The function to call after the snapshot is taken.
OptionalencoderThe image quality, between 0 and 1. Used for image formats with lossy compression, such as image/jpeg.
OptionalgetIs this a snapshot to get a single pixel, or an area?
OptionalheightThe height of the snapshot.
OptionalisIs this snapshot grabbing from a frame buffer or a canvas?
OptionaltypeThe format of the image to create, usually image/png or image/jpeg.
OptionalunpremultiplyShould the snapshot be unpremultiplied before being returned? WebGL only.
OptionalwidthThe width of the snapshot.
OptionalxThe x coordinate to start the snapshot from.
OptionalyThe y coordinate to start the snapshot from.
The height of the frame buffer, if a frame buffer grab.