收藏
回答

wx.canvasToTempFilePath报错的问题?

let canvas = wx.createOffscreenCanvas({ type: '2d', width: 375, height: 375 })

const context = canvas.getContext('2d')

wx.canvasToTempFilePath({ canvas, x: 0, y: 0, width: avatarSize, height: avatarSize, destWidth: avatarSize, destHeight: avatarSize })

在调试基础库 2.27.2中报错

canvasToTempFilePath:internal error

代码片段:https://developers.weixin.qq.com/s/d2MrHImh71D5

最后一次编辑于  2022-11-12
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容