为什么我保存的图片是白色的,只有白色
发布于 6 年前 作者 vtian 15251 次浏览 来自 问答

wx.canvasToTempFilePath({

          x: 0,

          y: 0,

          width: 600,

          height: 800,

          destWidth: 600,

          destHeight: 800,

          fileType: ‘jpg’,

          canvasId: ‘myCanvas’,

          success: function (res) {

            console.log(res.tempFilePath);

          }

        })

1 回复

就是这样子

回到顶部