lolocoo

html2canvas 插件生成 canvas 时在 retina 屏幕显示模糊的问题

  •  
  •   lolocoo · Dec 26, 2014 · 6941 views
    This topic created in 4220 days ago, the information mentioned may be changed or developed.

    html2canvas 插件生成canvas时在 retina 屏幕显示模糊, 有什么方法使在retina屏幕显示清晰的方法么?

    1 replies    2014-12-26 09:46:40 +08:00
    ijse
        1
    ijse  
       Dec 26, 2014
    因为retina屏渲染的是2x大小,跟canvas的画布大小不一致。所以只需要想办法创建匹配尺寸的canvas即可。

    方法可以参照这里: https://github.com/cburgmer/rasterizeHTML.js/blob/master/examples/retina.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3707 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 04:54 · PVG 12:54 · LAX 21:54 · JFK 00:54
    ♥ Do have faith in what you're doing.