wx.canvasGetImageData方法有bug??
调用drawImage画图后。 再调用wx.canvasGetImageData方法未能获取canvas画图后的最新像素数据?? 源码如下: context.drawImage(res.tempFilePath, 0, 0, 210, 178); context.draw(true, function (e) { wx.canvasGetImageData({ canvasId: 'photoCanvasqq', x: 0, y: 0, width: 210, height: 178, success(res) { console.log(res.width) console.log(res.height) console.log(res.data instanceof Uint8ClampedArray) console.log(res.data.length) console.log(res.data);//返回的像素数据不是最新的canvas画图后的像素数据?? }, fail(res) { console.log('error:'+res) } }) });