Class ImageLoader

  • public final class ImageLoader
    extends Object
    Loads images from various sources. Typically we first try the standard method, then fall back to using Java Advanced Imaging Library (JAI), in order to catch this problem.
    Hendrik Schreiber
    • Method Detail

      • load

        public static Image load​(File file)
      • load

        public static Image load​(Path file)
      • getImage

        public static Image getImage​(String resourceName,
                                     Class<?> klass)
        Loads an image from either the given class's package or the resource tree of the Mac App Bundle.
        resourceName - resource name
        klass - class which package should be searched
        image, if found