Class PSDThumbnail
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.psd.PSDImageResource
-
- com.twelvemonkeys.imageio.plugins.psd.PSDThumbnail
-
final class PSDThumbnail extends PSDImageResource
PSDThumbnail- Version:
- $Id: PSDThumbnail.java,v 1.0 Jul 29, 2009 4:41:06 PM haraldk Exp$
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
data
private int
format
private int
height
private int
width
private int
widthBytes
-
Fields inherited from class com.twelvemonkeys.imageio.plugins.psd.PSDImageResource
id, name, size
-
-
Constructor Summary
Constructors Constructor Description PSDThumbnail(short pId, javax.imageio.stream.ImageInputStream pInput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
java.awt.image.BufferedImage
getThumbnail()
int
getWidth()
(package private) java.awt.image.BufferedImage
imageFromRawData(int width, int height, int scanLine, byte[] data)
protected void
readData(javax.imageio.stream.ImageInputStream pInput)
This default implementation simply skips the data.java.lang.String
toString()
-
Methods inherited from class com.twelvemonkeys.imageio.plugins.psd.PSDImageResource
read, resourceTypeForId, toStringBuilder
-
-
-
-
Method Detail
-
readData
protected void readData(javax.imageio.stream.ImageInputStream pInput) throws java.io.IOException
Description copied from class:PSDImageResource
This default implementation simply skips the data.- Overrides:
readData
in classPSDImageResource
- Parameters:
pInput
- the input- Throws:
java.io.IOException
- if an I/O exception occurs
-
imageFromRawData
java.awt.image.BufferedImage imageFromRawData(int width, int height, int scanLine, byte[] data)
-
getWidth
public final int getWidth()
-
getHeight
public final int getHeight()
-
getThumbnail
public final java.awt.image.BufferedImage getThumbnail() throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classPSDImageResource
-
-