From daf759ea4a70735b05d69b571942babd94f81fe3 Mon Sep 17 00:00:00 2001 From: raphael Date: Wed, 3 Jun 2020 16:27:45 +0200 Subject: [PATCH] fix transparent background on saved images --- src/js/whiteboard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/whiteboard.js b/src/js/whiteboard.js index 63c8834..3947455 100644 --- a/src/js/whiteboard.js +++ b/src/js/whiteboard.js @@ -1266,9 +1266,11 @@ const whiteboard = { } if (drawBackgroundGrid) { + destCtx.globalAlpha = 0.8; var ptrn = destCtx.createPattern(brackGroundImg, "repeat"); // Create a pattern with this image, and set it to "repeat". destCtx.fillStyle = ptrn; destCtx.fillRect(0, 0, copyCanvas.width, copyCanvas.height); // context.fillRect(x, y, width, height); + destCtx.globalAlpha = 1; } $.each(_this.imgContainer.find("img"), function () {