getImageData not the same after run through createImageBitmap
问题 I have a function which downloads an image, and saves the image data. Based on user preference, it can save the image data in one of two ways - as an ImageData Uint8ClampedArray, or as an ImageBitmap. I'm using an image loading function to wait until the image is loaded before running my save function: function loadImage(src) { return new Promise((resolve, reject) => { const img = new Image(); img.crossOrigin = '*'; img.addEventListener('load', () => resolve(img)); img.src = src; }); } The