Class ImageLoader

Loads a given image asset

Constructors

Methods

Constructors

Methods

  • Loads the given image from the file system. If the image is already loaded in the cache it just returns the ImageAsset avoiding loading it from fileSystem

    Parameters

    • src: string

      the source path of the asset file

    Returns Promise<ImageAsset>

    Promise - the loaded ImageAsset