This commit is contained in:
Dragon Fire
2020-07-01 15:02:57 -04:00
parent 85ad89bfe0
commit 2208287333
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -117,9 +117,9 @@ module.exports = class CanvasUtil {
return ctx;
}
static pixelize(ctx, level, x, y, width, height) {
static pixelize(ctx, canvas, image, level, x, y, width, height) {
ctx.imageSmoothingEnabled = false;
ctx.drawImage(data, x, y, width * level, height * level);
ctx.drawImage(image, x, y, width * level, height * level);
ctx.drawImage(canvas, x, y, width * level, height * level, x, y, width, height);
ctx.imageSmoothingEnabled = true;
return ctx;