收藏
回答

非安全 Canvas 的 WebGL 上下文的 drawImage 不能传入安全 Canvas?

//公共域发送数据

let openDataContext = wx.getOpenDataContext()

let sharedCanvas = openDataContext.canvas

sharedCanvas.width = 400

sharedCanvas.height = 200

setTimeout(() => {

  let canvas = wx.createCanvas()

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

  context.drawImage(sharedCanvas, 0, 0)

}, 2000);

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容