Package com.tagtraum.core.imageio
Class ImageLoader
- java.lang.Object
-
- com.tagtraum.core.imageio.ImageLoader
-
public final class ImageLoader extends Object
Loads images from various sources. Typically we first try the standardImageIO.read(...)
method, then fall back to using Java Advanced Imaging Library (JAI), in order to catch this problem.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static Image
load(byte[] buf)
static Image
load(File file)
static Image
load(InputStream in)
static Image
load(Path file)
-
-
-
Method Detail
-
load
public static Image load(byte[] buf) throws IOException
- Throws:
IOException
-
load
public static Image load(InputStream in) throws IOException
- Throws:
IOException
-
-