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[]dataprivate intformatprivate intheightprivate intwidthprivate intwidthBytes-
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 intgetHeight()java.awt.image.BufferedImagegetThumbnail()intgetWidth()(package private) java.awt.image.BufferedImageimageFromRawData(int width, int height, int scanLine, byte[] data)protected voidreadData(javax.imageio.stream.ImageInputStream pInput)This default implementation simply skips the data.java.lang.StringtoString()-
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.IOExceptionDescription copied from class:PSDImageResourceThis default implementation simply skips the data.- Overrides:
readDatain 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:
toStringin classPSDImageResource
-
-