Nasi wolontariusze nie przetłumaczyli jeszcze tego artykułu na język Polski. Dołącz do nas i pomóż go przetłumaczyć!
Można także przeczytać artykuł w języku: English (US).

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The ImageBitmapRenderingContext interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap. Its context id (the first argument to HTMLCanvasElement.getContext() or OffscreenCanvas.getContext()) is "bitmaprenderer".

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

Methods

ImageBitmapRenderingContext.transferFromImageBitmap()

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

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'ImageBitmapRenderingContext' in that specification.
Living Standard  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
ImageBitmapRenderingContext
ExperimentalNon-standard
Chrome Full support 66Edge ? Firefox Full support 46IE No support NoOpera Full support YesSafari No support NoWebView Android Full support 66Chrome Android Full support 66Firefox Android Full support 46Opera Android Full support YesSafari iOS ? Samsung Internet Android No support No
transferFromImageBitmap
ExperimentalNon-standard
Chrome Full support 66Edge ? Firefox Full support 52
Full support 52
No support 46 — 52
Alternate Name
Alternate Name Uses the non-standard name: transferImageBitmap
IE No support NoOpera Full support YesSafari No support NoWebView Android Full support 66Chrome Android Full support 66Firefox Android Full support 52
Full support 52
No support 46 — 52
Alternate Name
Alternate Name Uses the non-standard name: transferImageBitmap
Opera Android Full support YesSafari iOS ? Samsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Uses a non-standard name.
Uses a non-standard name.

See also

Autorzy i etykiety dokumentu

Ostatnia aktualizacja: mdnwebdocs-bot,