ImageBitmapRenderingContext
メモ: この機能はウェブワーカー内で利用可能です。
ImageBitmapRenderingContext
インターフェイスは、キャンバスのレンダリングコンテキストで、指定された ImageBitmap
でキャンバスのコンテンツを置き換える機能を提供します。そのコンテキスト ID(HTMLCanvasElement.getContext()
または OffscreenCanvas.getContext()
の最初の引数)は "bitmaprenderer"
です。
このインターフェイスは、ウィンドウとワーカーコンテキストの両方で利用できます。
インスタンスメソッド
ImageBitmapRenderingContext.transferFromImageBitmap()
-
指定された
ImageBitmap
をこのレンダリングコンテキストに関連付けられたキャンバスで表示します。ImageBitmap
の所有権はキャンバスに移譲されます。これは以前はtransferImageBitmap()
という名前付きでしたが、仕様変更で名前が変更されました。古い名前はコードの破損を避けるために別名として残されています。
仕様書
Specification |
---|
HTML # the-imagebitmaprenderingcontext-interface |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ImageBitmapRenderingContext | ||||||||||||
canvas | ||||||||||||
transferFromImageBitmap |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Uses a non-standard name.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.