transferFromImageBitmap method

void transferFromImageBitmap(
  1. ImageBitmap? bitmap
)

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.

This method was previously named transferImageBitmap(), but was renamed in a spec change. The old name is being kept as an alias to avoid code breakage.

Implementation

external void transferFromImageBitmap(ImageBitmap? bitmap);