ImageBitmap
A decoded image ready to draw on a canvas, which can be transferred to a worker without copying.
In more detail
It is created with createImageBitmap() from an image, a blob or a canvas. Workers can process images off the main thread by receiving ImageBitmaps.
Related terms
- bitmap — An image stored as a grid of coloured pixels, such as a screenshot.
- transferable object — An object, such as an ArrayBuffer, ImageBitmap or MessagePort, whose memory can be moved to another thread instead of copied.
- canvas element — An HTML element that provides a blank bitmap area which scripts draw on pixel by pixel.
Taught in
- Web Workers: Off-Thread Computation And Structured Clone — Frontend Architecture & Web Platform