2d.imageData.get.length

getImageData() returns a correctly-sized Uint8ClampedArray