Get updated height of image within Canvas

前端 未结 0 1580
无人及你
无人及你 2021-01-17 05:28

so I have a large image that I\'m drawing onto my canvas.

context.drawImage(img, 0, 0, img.width, img.height, 0, 0, canvas.width / 2, canvas.height / 2);


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题