ImageBitmap

@native @JSType
trait ImageBitmap extends Object

The ImageBitmap interface represents a bitmap image which can be drawn to a <canvas> without undue latency. It can be created from a variety of source objects using the createImageBitmap() factory method. ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def close(): Unit

Dispose of all graphical resources associated with an ImageBitmap.

Dispose of all graphical resources associated with an ImageBitmap.

def height: Double

An unsigned long representing the height, in CSS pixels, of the ImageData.

An unsigned long representing the height, in CSS pixels, of the ImageData.

def width: Double

An unsigned long representing the width, in CSS pixels, of the ImageData.

An unsigned long representing the width, in CSS pixels, of the ImageData.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object