create bitmap failed
安卓下会报错,launchApp疑问。目前尝试了小米和华为手机
看到论坛里去年就有帖子提到过,说是screenWidth为0,但我打印出来screenWidth是正常的
相关代码:
this.ctx.draw(true,async()=>{
const result = await wepy.canvasToTempFilePath({
x: 0,
y: 0,
destWidth: canvasWidth *4,
destHeight: canvasHeight *4,
canvasId: 'painter',
quality:1,
})
this.imagePath = result.tempFilePath
this.$apply()
})
微信小程序开发相关问题解答;本文来自微信小程序工厂 http://www.xcxgc.com 转载请保留。
微信小程序开发者回答:
孤***:
- -又出现了吗。
孤***:
https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1182023184&docid=89645a245f5e9077a851ca35243c3383
showToast 放在function回调后 show瞬间消失?##微信小程序开发
本文网址:http://www.91bianli.com/kaifazhinan/71627.html