java.lang.Object
one.jpro.platform.image.manager.ImageManager

public class ImageManager extends Object
Manages the process of loading and caching images, allowing efficient retrieval and processing.
  • Method Details

    • getInstance

      public static ImageManager getInstance()
      Returns the singleton instance of ImageManager.
      Returns:
      the single instance of ImageManager
    • loadImage

      public ImageResult loadImage(ImageDefinition imageDefinition)
      Loads the image based on the given definition, caches it, and returns the image result.
      Parameters:
      imageDefinition - the image definition containing source, transformation and encoder
      Returns:
      the loaded and potentially cached image result