disable image smoothing

This commit is contained in:
Niklas von Hertzen 2013-05-29 22:31:00 +03:00
parent a4702423cc
commit 0afb0fae0e

View File

@ -80,6 +80,7 @@ _html2canvas.Renderer.Canvas = function(options) {
canvas.height = canvas.style.height = options.height || zStack.ctx.height;
fstyle = ctx.fillStyle;
ctx.webkitImageSmoothingEnabled = ctx.mozImageSmoothingEnabled = ctx.imageSmoothingEnabled = false;
ctx.fillStyle = (isTransparent(zStack.backgroundColor) && options.background !== undefined) ? options.background : zStack.backgroundColor;
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = fstyle;