A specialized cache for storing and managing images with scaling capabilities. This class maintains a mapping between keys and image paths, and provides functionality to retrieve scaled versions of images on demand.
Retrieves a scaled version of an image identified by the given key. This method caches scaled images to avoid redundant scaling operations. If the requested scaled image is not in the cache, it loads the base image, scales it, and caches the result for future use.
Retrieves a scaled version of an image identified by the given key. This method caches scaled images to avoid redundant scaling operations. If the requested scaled image is not in the cache, it loads the base image, scales it, and caches the result for future use.
Value parameters
height
the desired height of the scaled image
key
the key identifying the image
width
the desired width of the scaled image
Attributes
Returns
some containing the scaled image if available, None otherwise