华为安卓机将画布转图片成黑块,iOS正常

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

this.ctx.draw(true, (() => {

setTimeout(function () {

wx.canvasToTempFilePath({

canvasId: that.canvasName,

destWidth: 160,

destHeight: 320,

fileType: ‘jpg’,

quality: 0.1,

success: function (res) {

if (that.callBack) {

that.callBack(res.tempFilePath);

}

}

}, that);

}, 1000);

})());

1 回复
chao89
chao891 楼6 年前

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)