Function: loadAndCacheImage()
loadAndCacheImage(
imageId
,options
):Promise
<IImage
>
Loads an image given an imageId and optional priority and returns a promise which will resolve to the loaded image object or fail if an error occurred. The image is stored in the cache.
Parameters
• imageId: string
A Cornerstone Image Object's imageId
• options: ImageLoaderOptions
= ...
Options to be passed to the Image Loader
Returns
Promise
<IImage
>
Image Loader Object