Open aajiejie opened 1 year ago
When I use getImageData(), I have to wait for a long time to get data, which is unbearable. Why is this? ImgWH=360,pixelRatio=3 and the image pixel is 360 360 `const wh = imgWH pixelRatio;
context.getImageData(0, 0, wh, wh).then(imageData => {
....
}`
Same issue, it takes about a minute for getImageData to resolve with a 300x600 canvas
I have two solutions to solve it
When I use getImageData(), I have to wait for a long time to get data, which is unbearable. Why is this? ImgWH=360,pixelRatio=3 and the image pixel is 360 360 `const wh = imgWH pixelRatio;
....
}`