我试图在html5画布上绘制图像。问题是图像在画布Html5 canvas drawImage stretched
load('img_the_scream',
'http://www.w3schools.com/tags/img_the_scream.jpg',
function(img){
console.log( img.width , img.height);
ctx.drawImage(img, 10, 10 , img.width , img.height);
}
);