Takes a snapshot of the given area of the given canvas.
Unlike the other snapshot methods, this one is processed immediately and doesn't wait for the next render.
Snapshots work by creating an Image object from the canvas data, this is a blocking process, which gets more expensive the larger the canvas size gets, so please be careful how you employ this in your game.
The canvas to grab from.
The Function to invoke after the snapshot image is created.
Grab a single pixel as a Color object, or an area as an Image object?
The x coordinate to grab from.
The y coordinate to grab from.
The width of the area to grab.
The height of the area to grab.
The format of the image to create, usually
The image quality, between 0 and 1. Used for image formats with lossy compression, such as
This Canvas Renderer.