setAntiAlias(enable = false) {
		const canvas = this.canvas;

		// enable/disable antialias on the given Context2d object
		setPrefixed("imageSmoothingEnabled", enable, this.context);

		// set antialias CSS property on the main canvas
		if (typeof canvas.style !== "undefined") {
			if (enable !== true) {
				// https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering
				canvas.style["image-rendering"] = "optimizeSpeed"; // legal fallback
				canvas.style["image-rendering"] = "-moz-crisp-edges"; // Firefox
				canvas.style["image-rendering"] = "-o-crisp-edges"; // Opera
				canvas.style["image-rendering"] = "-webkit-optimize-contrast"; // Safari
				canvas.style["image-rendering"] = "optimize-contrast"; // CSS 3
				canvas.style["image-rendering"] = "crisp-edges"; // CSS 4
				canvas.style["image-rendering"] = "pixelated"; // CSS 4
				canvas.style.msInterpolationMode = "nearest-neighbor"; // IE8+
			} else {
				canvas.style["image-rendering"] = "auto";
			}
		}
	}
enable/disable image smoothing (scaling interpolation)
@param {boolean} [enable=false] - whether to enable or not image smoothing (scaling interpolation)