Documentation
    Preparing search index...

    Function createImageLoader

    • Builds an image loader around a platform decoder.

      Parameters

      • decode: ImageDecodeLike

        The decoder; (data) => createImageBitmap(new Blob([data])) in a browser, a fake in a unit test. May return the bitmap synchronously.

      • OptionalnameOrOptions: string | ImageLoaderOptions

        Diagnostics label, or image-size/probe/memory options. Native platform decoders cannot satisfy maximumWorkingBytes and are refused before fetching. RGBA8 size estimates do not cap decoder memory or measure the native bitmap's actual storage.

      Returns AssetLoader<ImageAsset>

      A loader producing a Disposable ImageAsset. Each call returns a distinct object, hence a distinct asset-manager cache slot.