Movatterモバイル変換


[0]ホーム

URL:


  1. 開発者向けのウェブ技術
  2. Web API
  3. ImageBitmapRenderingContext

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docsコミュニティーについてもっと知り、仲間になるにはこちらから。

View in EnglishAlways switch to English

ImageBitmapRenderingContext

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2020年1月⁩.

メモ: この機能はウェブワーカー内で利用可能です。

ImageBitmapRenderingContext インターフェイスは、キャンバスのレンダリングコンテキストで、指定されたImageBitmap でキャンバスのコンテンツを置き換える機能を提供します。そのコンテキスト ID(HTMLCanvasElement.getContext() またはOffscreenCanvas.getContext() の最初の引数)は"bitmaprenderer" です。

このインターフェイスは、ウィンドウとワーカーコンテキストの両方で利用できます。

インスタンスメソッド

ImageBitmapRenderingContext.transferFromImageBitmap()

指定されたImageBitmap をこのレンダリングコンテキストに関連付けられたキャンバスで表示します。ImageBitmap の所有権はキャンバスに移譲されます。これは以前はtransferImageBitmap() という名前付きでしたが、仕様変更で名前が変更されました。古い名前はコードの破損を避けるために別名として残されています。

仕様書

Specification
HTML
# the-imagebitmaprenderingcontext-interface

ブラウザーの互換性

関連情報

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp