Is this what you want? var scale = Math.min(C.width / img.width, C.height / img.height); ctx.drawImage(img, 0, 0, img.width * scale, ...
確定! 回上一頁