public class ImmutableImageLoader
extends java.lang.Object
Constructor and Description |
---|
ImmutableImageLoader() |
Modifier and Type | Method and Description |
---|---|
static ImmutableImageLoader |
create() |
ImmutableImageLoader |
detectMetadata(boolean metadata)
Set to true to load metadata from the file.
|
ImmutableImageLoader |
detectOrientation(boolean reorientate)
Set to true to reorientate the image if applicable.
|
ImmutableImage |
fromBytes(byte[] bytes) |
ImmutableImage |
fromFile(java.io.File file) |
ImmutableImage |
fromFile(java.lang.String file) |
ImmutableImage |
fromPath(java.nio.file.Path path) |
ImmutableImage |
fromResource(java.lang.String resource) |
ImmutableImage |
fromStream(java.io.InputStream in) |
ImmutableImage |
load(ImageSource source) |
ImmutableImageLoader |
sourceRegion(java.awt.Rectangle rectangle)
Specifies a region of the image to be loaded.
|
ImmutableImageLoader |
type(int type)
Set the BufferedImage type for the backing image.
|
public static ImmutableImageLoader create()
public ImmutableImageLoader detectOrientation(boolean reorientate)
public ImmutableImageLoader detectMetadata(boolean metadata)
public ImmutableImageLoader sourceRegion(java.awt.Rectangle rectangle)
public ImmutableImageLoader type(int type)
public ImmutableImage fromBytes(byte[] bytes) throws java.io.IOException
java.io.IOException
public ImmutableImage fromFile(java.io.File file) throws java.io.IOException
java.io.IOException
public ImmutableImage fromFile(java.lang.String file) throws java.io.IOException
java.io.IOException
public ImmutableImage fromPath(java.nio.file.Path path) throws java.io.IOException
java.io.IOException
public ImmutableImage fromResource(java.lang.String resource) throws java.io.IOException
java.io.IOException
public ImmutableImage fromStream(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public ImmutableImage load(ImageSource source) throws java.io.IOException
java.io.IOException