10 2021 档案

小程序使用canvas报错:"canvasToTempFilePath: fail canvas is empty"
摘要:小程序使用canvas报错:"canvasToTempFilePath: fail canvas is empty" 为啥呢? 因为在自定义组件中使用canvas 需要添加this参数 wx.canvasToTempFilePath({ x: 0, y: 0, width: 581 * util.p 阅读全文

posted @ 2021-10-31 12:03 土匪7 阅读(1251) 评论(0) 推荐(0)

小程序canvasToTempFilePath生成了白底图片,期望生成透明的
摘要:ctx.draw(false,function(){ setTimeout(function(){ wx.canvasToTempFilePath({ x: 0, y: 0, width: 581 * util.pixelRatio, height: 575 * util.pixelRatio, c 阅读全文

posted @ 2021-10-31 11:57 土匪7 阅读(1289) 评论(0) 推荐(0)