From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/web/api/imagebitmap/index.html | 65 +++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 files/es/web/api/imagebitmap/index.html (limited to 'files/es/web/api/imagebitmap/index.html') diff --git a/files/es/web/api/imagebitmap/index.html b/files/es/web/api/imagebitmap/index.html new file mode 100644 index 0000000000..31a33886b9 --- /dev/null +++ b/files/es/web/api/imagebitmap/index.html @@ -0,0 +1,65 @@ +--- +title: ImageBitmap +slug: Web/API/ImageBitmap +tags: + - API + - Canvas + - Imagen de mapa de bits + - Referencia +translation_of: Web/API/ImageBitmap +--- +
{{APIRef("Canvas API")}}
+ +

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.

+ +

Properties

+ +
+
{{domxref("ImageBitmap.height")}} {{readonlyInline}}
+
Is an unsigned long representing the height, in CSS pixels, of the ImageData.
+
{{domxref("ImageBitmap.width")}} {{readonlyInline}}
+
Is an unsigned long representing the width, in CSS pixels, of the ImageData.
+
+ +

Methods

+ +
+
{{domxref("ImageBitmap.close()")}}
+
+

Disposes of all graphical resources associated with an ImageBitmap.

+
+
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', "webappapis.html#imagebitmap", "ImageBitmap")}}{{Spec2('HTML WHATWG')}} 
+ +

Browser compatibility

+ + + +

{{Compat("api.ImageBitmap")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf