Table of Contents

Class ImageBitmap

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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 Window.CreateImageBitmap or WorkerGlobalScope.CreateImageBitmap factory method. ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.

[Value("ImageBitmap")]
public class ImageBitmap
Inheritance
ImageBitmap
Inherited Members

Remarks

ImageBitmap is a transferable object.

-Window.CreateImageBitmap
-WorkerGlobalScope.CreateImageBitmap
-CanvasRenderingContext2D.DrawImage
-WebGLRenderingContext.TexImage2D
-TransferToImageBitmap()

See also on MDN

Constructors

ImageBitmap()

public ImageBitmap()

Properties

Height

The ImageBitmap.height read-only property returns the ImageBitmap object's height in CSS pixels.

[Value("height")]
public ulong Height { get; }

Property Value

ulong

A number represents the ImageBitmap object's height in CSS pixels.

Remarks

Width

The ImageBitmap.width read-only property returns the ImageBitmap object's width in CSS pixels.

[Value("width")]
public ulong Width { get; }

Property Value

ulong

A number represents the ImageBitmap object's width in CSS pixels.

Remarks

Methods

Close()

The ImageBitmap.close()
method disposes of all graphical resources associated with an ImageBitmap.

[Value("close")]
public GlobalObject.Undefined Close()

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

-The interface defining this method, ImageBitmap.

See also on MDN