Creates a pixel buffer, validating that data.length === width * height * bytesPerPixel(colorMode).
data.length === width * height * bytesPerPixel(colorMode)
Creates a pixel buffer, validating that
data.length === width * height * bytesPerPixel(colorMode).