ImageBitmapLoader
new ImageBitmapLoader(manager?)
THREE: THREE.ImageBitmapLoader
Loads images as ImageBitmap via fetch() and createImageBitmap(). Sends Accept: image/* to bypass SPA fallback.
Methods
| Method | Description |
|---|---|
setOptions(options: object): this | Sets options passed to createImageBitmap(). |
load(url: string, onLoad?: Function, onProgress?: Function, onError?: Function): void | Fetches the image and passes the ImageBitmap to onLoad. |