From b4d732f01b1b04bed7cd6fdffd4fdc0d10726f59 Mon Sep 17 00:00:00 2001 From: Robert McNally Date: Wed, 17 Oct 2012 23:30:14 -0700 Subject: [PATCH] High-res QR codes --- bitaddress.org.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bitaddress.org.html b/bitaddress.org.html index 14def63..7f74b59 100644 --- a/bitaddress.org.html +++ b/bitaddress.org.html @@ -4366,9 +4366,13 @@ var height = qrcode.getModuleCount() * sizeMultiplier; // create canvas element var canvas = document.createElement('canvas'); - canvas.width = width; - canvas.height = height; + var scale = 10.0; + canvas.width = width * scale; + canvas.height = height * scale; + canvas.style.width = width + 'px'; + canvas.style.height = height + 'px'; var ctx = canvas.getContext('2d'); + ctx.scale(scale, scale); // compute tileW/tileH based on width/height var tileW = width / qrcode.getModuleCount(); var tileH = height / qrcode.getModuleCount();