收藏
回答

canvas绘制离屏画布报错,怎么办?

canvas里面的drawImage绘制createOffscreenCanvas离屏画布一直出错,怎么解决

我是这样用的

let offCanvas = wx.createOffscreenCanvas({type: '2d', width: 256, height: 256})
let cacheCtx = offCanvas.getContext('2d')
cacheCtx.drawImage(pic, 0, 0 )
context.drawImage(offCanvas,0,0)
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容