Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

ImageBitmapRenderingContext

BaselineWidely available

Note: This feature is available inWeb Workers.

TheImageBitmapRenderingContext interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the givenImageBitmap. Its context id (the first argument toHTMLCanvasElement.getContext() orOffscreenCanvas.getContext()) is"bitmaprenderer".

This interface is available in both the window and theworker context.

Instance properties

ImageBitmapRenderingContext.canvasRead only

A read-only reference to theHTMLCanvasElement orOffscreenCanvas object that is associated with the given context.

Instance methods

ImageBitmapRenderingContext.transferFromImageBitmap()

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

Specifications

Specification
HTML
# the-imagebitmaprenderingcontext-interface

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp