阅读背景:

js 给html设置dpi,javascript - Higher DPI graphics with HTML5 canvas - Stack Overflow_北知春的博客

来源:互联网 

Canvases have two different 'sizes': their DOM width/height and their CSS width/height. You can increase a canvas' resolution by increasing the DOM size while keeping the CSS size fixed, and then using the .scale() method to scale all of your future draws to the new bigger size. Here's an example:Canvases have two different 'sizes': their




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: