Skip to content

Output high resolution PNG #716

Closed
@domoritz

Description

@domoritz

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); });

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions