ImageBitmapRenderingContext

package js.html

Available on js

The ImageBitmapRenderingContext interface is a canvas rendering context which only 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".

Documentation ImageBitmapRenderingContext by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Methods

transferFromImageBitmap(bitmap:ImageBitmap):Void

Displays the given ImageBitmap in the canvas associated with this rendering context. Ownership of the ImageBitmap is transferred to the canvas. This was previously named transferImageBitmap(), but was renamed in a spec change. The old name is being kept as an alias to avoid code breakage.

transferImageBitmap(bitmap:ImageBitmap):Void

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/ImageBitmapRenderingContext.html