--- title: ImageBitmap slug: Web/API/ImageBitmap tags: - API - Canvas - Imagen de mapa de bits - Referencia translation_of: Web/API/ImageBitmap ---
The ImageBitmap interface represents a bitmap image which can be drawn to a {{HTMLElement("canvas")}} without undue latency. It can be created from a variety of source objects using the {{domxref("ImageBitmapFactories.createImageBitmap", "createImageBitmap()")}} factory method. ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.
unsigned long representing the height, in CSS pixels, of the ImageData.unsigned long representing the width, in CSS pixels, of the ImageData.Disposes of all graphical resources associated with an ImageBitmap.
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('HTML WHATWG', "webappapis.html#imagebitmap", "ImageBitmap")}} | {{Spec2('HTML WHATWG')}} |
{{Compat("api.ImageBitmap")}}