createImageBitmap
The createImageBitmap()
global method creates an ImageBitmap
object from a source such as an image, SVG, blob, or canvas. An ImageBitmap
object represents pixel data that can be drawn to a canvas with lower latency than other types, such as ImageData
.
To learn more, see
ImageBitmap,
ImageBitmap: close() method,
ImageBitmap: height property,
ImageBitmap: width property,
ImageBitmapRenderingContext,
ImageBitmapRenderingContext: canvas property,
ImageBitmapRenderingContext: transferFromImageBitmap() method,
WorkerGlobalScope: createImageBitmap() method at MDN.
Compatibility (view on caniuse.com)
- Chrome 66 Released on 2018-04-17
- Chrome Android 66 Released on 2018-04-17
- Edge 79 Released on 2020-01-15
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari 17.2 Released on 2023-12-11
- Safari on iOS 17.2 Released on 2023-12-11
Baseline availability blocked since December 2023 by Firefox (11 months)
Specifications
- HTML Standard (#imagebitmap), from HTML Workstream (WHATWG).