Options
All
  • Public
  • Public/Protected
  • All
Menu

Module imageResources.function

Index

Functions

fetchFromUrl

  • fetchFromUrl(url: string | URL): Promise<Image>
  • fetchFromUrl loads remote image content at runtime to provide it for further use in on-screen image search

    throws

    On malformed URL input or in case of non-image remote content

    Parameters

    • url: string | URL

      The remote URl to fetch an image from as string or {@link URL}

    Returns Promise<Image>

loadImageResource

  • loadImageResource(providerRegistry: ProviderRegistry, resourceDirectory: string, fileName: string): Promise<Image>