为什么我保存的图片是白色的,只有白色

发布于 7 年前作者 vtian15338 次浏览最后编辑 7 年前来自 ask

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 回复
qyin
qyin1 楼5 年前

就是这样子