ImageBitmap Class

A bitmap image that can be drawn without delay (https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmap): created by createImageBitmap() (GlobalScope.CreateImageBitmap) from an image, a canvas, a blob, an image data or another bitmap. It is serializable and transferable.

public sealed class ImageBitmap

Properties

NameDescription
HeightGets the height of the bitmap in pixels (0 when it is detached).
WidthGets the width of the bitmap in pixels (0 when it is detached).

Gets the height of the bitmap in pixels (0 when it is detached).

public uint Height { get; }

Gets the width of the bitmap in pixels (0 when it is detached).

public uint Width { get; }

Methods

NameDescription
Close()Releases the bitmap data (https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#dom-imagebitmap-close): the bitmap is detached.

Releases the bitmap data (https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#dom-imagebitmap-close): the bitmap is detached.

public void Close()