|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.img.PSDReader
public class PSDReader
Field Summary | |
---|---|
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 Summary | |
---|---|
PSDReader()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public PSDReader()
Method Detail |
---|
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 source
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |