create bitmap failed
安卓下会报错,目前尝试了小米和华为手机
看到论坛里去年就有帖子提到过,说是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() }) |
https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1182023184&docid=89645a245f5e9077a851ca35243c3383
- -又出现了吗。