Learn html5-canvas - Scaling image to fit or fill. ... 2) - (img.height / 2) * scale; ctx.drawImage(img, x, y, img.width * scale, img.height * scale); } ...
確定! 回上一頁