com.aspose.imaging.fileformats.psd.resources
Class ThumbnailResource

java.lang.Object
  extended by com.aspose.imaging.fileformats.psd.ResourceBlock
      extended by com.aspose.imaging.fileformats.psd.resources.ThumbnailResource
Direct Known Subclasses:
Thumbnail4Resource

public class ThumbnailResource
extends ResourceBlock

The thumbnail resource block.


Constructor Summary
ThumbnailResource()
           Initializes a new instance of the ThumbnailResource class.
 
Method Summary
 short getBitsPixel()
           Gets the bits pixel.
 int getDataSize()
           Gets the resource data size in bytes.
 int getFormat()
           Gets the thumbnail data format.
 int getHeight()
           Gets the height of thumbnail in pixels.
 int getMinimalVersion()
           Gets the minimal required psd version.
 short getPlanesCount()
           Gets the planes count.
 int getSizeAfterCompression()
           Gets the size after compression.
 Color[] getThumbnailData()
           Gets the thumbnail data.
 int getTotalSize()
           Gets the total data size.
 int getWidth()
           Gets the width of thumbnail in pixels.
 int getWidthBytes()
           Gets the row width in bytes.
protected  void saveCommonData(StreamContainer streamContainer)
           Saves the common data.
protected  void saveData(StreamContainer streamContainer)
           Saves the resource block data.
 void setBitsPixel(short value)
           Sets the bits pixel.
 void setFormat(int value)
           Sets the thumbnail data format.
 void setHeight(int value)
           Sets the height of thumbnail in pixels.
 void setPlanesCount(short value)
           Sets the planes count.
 void setSizeAfterCompression(int value)
           Sets the size after compression.
 void setThumbnailData(Color[] value)
           Sets the thumbnail data.
 void setWidth(int value)
           Sets the width of thumbnail in pixels.
 void validateValues()
           Validates the resource values.
 
Methods inherited from class com.aspose.imaging.fileformats.psd.ResourceBlock
getID, getName, getSignature, getSize, save, setID, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailResource

public ThumbnailResource()

Initializes a new instance of the ThumbnailResource class.

Method Detail

getBitsPixel

public short getBitsPixel()

Gets the bits pixel.

Value: The thumbnail bits pixel.


getDataSize

public int getDataSize()

Gets the resource data size in bytes.

Value: The resource data size.

Specified by:
getDataSize in class ResourceBlock

getFormat

public int getFormat()

Gets the thumbnail data format.

Value: The thumbnail data format.


getHeight

public int getHeight()

Gets the height of thumbnail in pixels.

Value: The thumbnail height.


getMinimalVersion

public int getMinimalVersion()

Gets the minimal required psd version.

Value: The minimal psd version.

Specified by:
getMinimalVersion in class ResourceBlock

getPlanesCount

public short getPlanesCount()

Gets the planes count.

Value: The thumbnail planes count.


getSizeAfterCompression

public int getSizeAfterCompression()

Gets the size after compression. Used for consistency check.

Value: The size after compression.


getThumbnailData

public Color[] getThumbnailData()

Gets the thumbnail data.

Value: The thumbnail data.


getTotalSize

public int getTotalSize()

Gets the total data size.

Value: The total data size.


getWidth

public int getWidth()

Gets the width of thumbnail in pixels.

Value: The thumbnail width.


getWidthBytes

public int getWidthBytes()

Gets the row width in bytes.

Value: The row width in bytes.


saveCommonData

protected void saveCommonData(StreamContainer streamContainer)

Saves the common data.

Parameters:
streamContainer - The stream container.

saveData

protected void saveData(StreamContainer streamContainer)

Saves the resource block data.

Specified by:
saveData in class ResourceBlock
Parameters:
streamContainer - The stream container to save to.

setBitsPixel

public void setBitsPixel(short value)

Sets the bits pixel.

Value: The thumbnail bits pixel.


setFormat

public void setFormat(int value)

Sets the thumbnail data format.

Value: The thumbnail data format.


setHeight

public void setHeight(int value)

Sets the height of thumbnail in pixels.

Value: The thumbnail height.


setPlanesCount

public void setPlanesCount(short value)

Sets the planes count.

Value: The thumbnail planes count.


setSizeAfterCompression

public void setSizeAfterCompression(int value)

Sets the size after compression. Used for consistency check.

Value: The size after compression.


setThumbnailData

public void setThumbnailData(Color[] value)

Sets the thumbnail data.

Value: The thumbnail data.


setWidth

public void setWidth(int value)

Sets the width of thumbnail in pixels.

Value: The thumbnail width.


validateValues

public void validateValues()

Validates the resource values.

Overrides:
validateValues in class ResourceBlock