ImageBitmapRenderingContext extension type

The ImageBitmapRenderingContext interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap. Its context id (the first argument to HTMLCanvasElement.getContext or OffscreenCanvas.getContext) is "bitmaprenderer".

This interface is available in both the window and the worker context.

on
Implemented types

Properties

canvas JSObject
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transferFromImageBitmap(ImageBitmap? bitmap) → void
The ImageBitmapRenderingContext.transferFromImageBitmap() method displays the given ImageBitmap in the canvas associated with this rendering context. The ownership of the ImageBitmap is transferred to the canvas as well.

Operators

operator ==(Object other) bool
The equality operator.
inherited