小程序画布保存图片模糊解决办法

              wx.canvasToTempFilePath({
                x: 0,
                y: 0,
                width: 300,
                height: 480,
                destWidth: 300 * wx.getSystemInfoSync().pixelRatio,
                destHeight: 480 * wx.getSystemInfoSync().pixelRatio,
                canvasId: 'bigCode',
                success(res) {
                  that.setData({
                    shareImgSrc: res.tempFilePath
                  }, () => {
                    console.log(that.data.shareImgSrc)
                  })
                }
              })

你可能感兴趣的:(小程序,小程序码)