Printing HTML5 Canvas in the correct size

前端 未结 3 1723
迷失自我
迷失自我 2021-02-06 13:30

Is there a correct way to specify the size of a canvas element in for example millimeters so that if I print it out it will have the correct size?

I\'ve tried this simpl

3条回答
  •  误落风尘
    2021-02-06 14:25

    If you had decided to process generated PNG at the server side, you can set PNG pHYs chunk in pure PHP.

提交回复
热议问题