canvas drawImage quality

前端 未结 3 1912
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 10:39

Here is a .png image (on the right), and the canvas element which I drew the image on (on the left). Can you notice the quality difference? Canvas renders the image with not

3条回答
  •  庸人自扰
    2020-12-17 11:35

    I think this link will be help full. I did the same but in my case I give the canvas weight and height dynamically using javascript. Then I gave the height and width to canvas when I declare it. That solve the problem.

提交回复
热议问题