Closed
Description
Currently in version 1.2.0 (Linux) there is a drawImage bug where the image is not draw with it's full size when using the ctx.drawImage() command. This command is working correctly in version 1.1.6.
var Canvas = require('canvas')
, Image = Canvas.Image
, canvas = new Canvas(640, 471)
, ctx = canvas.getContext('2d')
, fs = require('fs');
fs.readFile(__dirname + '/images/capture.png', function(err, squid){
if (err) throw err;
img = new Image;
img.src = squid;
ctx.drawImage(img, 243, 95, 153, 273);
fs.writeFile('output/out.png', canvas.toBuffer());
});
Metadata
Metadata
Assignees
Labels
No labels