You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {(Phaser.Display.Color)|HTMLImageElement)} snapshot - Either a Color object if a single pixel is being grabbed, or a new Image which contains a snapshot of the canvas contents.
11
+
*/
12
+
13
+
/**
14
+
* @typedef {object} SnapshotState
15
+
*
16
+
* @property {SnapshotCallback} callback - The function to call after the snapshot is taken.
17
+
* @property {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.
18
+
* @property {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.
19
+
* @property {integer} [x=0] - The x coordinate to start the snapshot from.
20
+
* @property {integer} [y=0] - The y coordinate to start the snapshot from.
21
+
* @property {integer} [width] - The width of the snapshot.
22
+
* @property {integer} [height] - The height of the snapshot.
23
+
* @property {boolean} [getPixel=false] - Is this a snapshot to get a single pixel, or an area?
0 commit comments