update
This commit is contained in:
parent
cb2da60102
commit
ea15408525
@ -39,4 +39,5 @@ context.scale(x 倍数, y 倍数); //画板放大指定倍数
|
|||||||
重点
|
重点
|
||||||
canvas2.width = w * times * window.devicePixelRatio; //指定画板宽度
|
canvas2.width = w * times * window.devicePixelRatio; //指定画板宽度
|
||||||
canvas2.height = h * times * window.devicePixelRatio; //指定画板宽度
|
canvas2.height = h * times * window.devicePixelRatio; //指定画板宽度
|
||||||
|
为什么要再乘以window.devicePixelRatio
|
||||||
|
这个其实是设备的dpi,可能
|
||||||
|
Loading…
Reference in New Issue
Block a user