fix transparent background on saved images

This commit is contained in:
raphael 2020-06-03 16:27:45 +02:00
parent f102739d49
commit daf759ea4a
1 changed files with 2 additions and 0 deletions

View File

@ -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 () {