SharedImage.get

SharedImage get(string filename)

Gets a shared image from file, loading if not cached.

This is the primary way to load images. If the image is already in the cache, the cached version is returned. Otherwise, the image is loaded from disk and added to the cache.

Parameters

filenamePath to the image file

Returns

SharedImage object, or null if loading failed