华为安卓机将画布转图片成黑块,iOS正常
发布于 6 年前 作者 xiangping 12581 次浏览 来自 问答

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 回复

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

回到顶部