Important: As of Firefox 52, the method defined in this mixin has been moved to the
WindowOrWorkerGlobalScope mixin, and other browsers will follow suit. Look to that page for up-to-date details.
ImageBitmapFactories mixin interface contains utility methods to create an
ImageBitmap. There is no object of this type, but the two interfaces
Window, available within the regular browsing scope, and the
WorkerGlobalScope interface for workers, implement this interface.
- Accepts a variety of different image sources, and returns a
Promisewhich resolves to an
ImageBitmap. Optionally the source is cropped to the rectangle of pixels originating at (sx, sy) with width sw, and height sh.
|WHATWG HTML Living Standard
The definition of 'ImageBitmapFactories' in that specification.
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari|
|Basic support||?||42 (42)||?||?||?|
|Feature||Android||Chrome for Android||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Safari Mobile|
|Basic support||?||?||42.0 (42)||?||?||?|