Modifier and Type | Field and Description |
---|---|
static int |
ImageType |
static int |
STATUS_FORMAT_ERROR
File read status: Error decoding file (may be partially decoded)
|
static int |
STATUS_OK
File read status: No errors.
|
static int |
STATUS_OPEN_ERROR
File read status: Unable to open source.
|
static int |
STATUS_UNSUPPORTED
File read status: Unsupported format
|
Constructor and Description |
---|
PSDReader() |
Modifier and Type | Method and Description |
---|---|
int |
getDelay(int forFrame)
Gets display duration for specified frame.
|
BufferedImage |
getFrame(int n)
Gets the image contents of frame n.
|
int |
getFrameCount()
Gets the number of layers read from file.
|
Dimension |
getFrameSize()
Gets maximum image size.
|
BufferedImage |
getImage()
Gets the first (or only) image read.
|
BufferedImage |
getLayer(int n)
Gets the image contents of layer n.
|
Point |
getLayerOffset(int n)
Gets the subimage offset of layer n if it is smaller than the
full frame size.
|
int |
read(InputStream stream)
Reads PhotoShop layers from stream.
|
int |
read(String name)
Reads PhotoShop file from specified source (file or URL string)
|
void |
reset()
Closes input stream and discards contents of all frames.
|
public static final int STATUS_OK
public static final int STATUS_FORMAT_ERROR
public static final int STATUS_OPEN_ERROR
public static final int STATUS_UNSUPPORTED
public static int ImageType
public PSDReader()
public int getFrameCount()
public int getDelay(int forFrame)
public BufferedImage getFrame(int n)
public Dimension getFrameSize()
public BufferedImage getImage()
public BufferedImage getLayer(int n)
public Point getLayerOffset(int n)
public int read(InputStream stream)
InputStream
- in PhotoShop format.public int read(String name)
name
- String containing sourcepublic void reset()
Copyright © 2015 Lucee