//You just need to calculate the image aspect ratio: var f = image.height / image.width; var newHeight = canvas.width * f; //And then draw using the ...
確定! 回上一頁