Already-decoded image pixels. Provide these directly when the runtime cannot decode the format on its own (e.g. Node, which has no createImageBitmap), or to skip decoding when you already hold raw pixels.
createImageBitmap
Optional
Byte order of pixels. Default 'rgba8888' (what a canvas produces).
'rgba8888'
Pixel height of the bitmap.
Tightly packed pixels, width * height * 4 bytes.
width * height * 4
Pixel width of the bitmap.
Already-decoded image pixels. Provide these directly when the runtime cannot decode the format on its own (e.g. Node, which has no
createImageBitmap), or to skip decoding when you already hold raw pixels.