All Superinterfaces:
JsonConvertible
All Known Implementing Classes:
ImageSourceFile, ImageSourceResource, ImageSourceURL

public interface ImageSource extends JsonConvertible
The ImageSource interface represents a source of images that can be loaded and manipulated.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the file name associated with this image source.
    long
    Returns the identity hash code associated with this image source.
    Loads an image and returns it as BufferedImage.

    Methods inherited from interface one.jpro.platform.image.manager.JsonConvertible

    toJSON
  • Method Details

    • loadImage

      BufferedImage loadImage()
      Loads an image and returns it as BufferedImage.
      Returns:
      The loaded image as a BufferedImage object.
    • identityHashValue

      long identityHashValue()
      Returns the identity hash code associated with this image source.
      Returns:
      The identity hash value corresponding to this object.
    • getFileName

      String getFileName()
      Returns the file name associated with this image source.
      Returns:
      The file name as a string.