Closed
Description
Hi, I'd like to output PNG images with a higher resolution.
I tried to scale the context but unfortunately that does not change the resolution of the generated PNG image. What do I need to change?
var ctx = canvas.getContext('2d');
ctx.scale(2, 2);
var stream = canvas.createPNGStream();
stream.on('data', function(chunk) { out.write(chunk); });