transferFromImageBitmap

open external fun transferFromImageBitmap(bitmap: ImageBitmap?)(source)

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.

MDN Reference