|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.fileformats.psd.ResourceBlock
com.aspose.imaging.fileformats.psd.resources.ThumbnailResource
public class ThumbnailResource
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 |
---|
public ThumbnailResource()
Initializes a new instance of the ThumbnailResource
class.
Method Detail |
---|
public short getBitsPixel()
Gets the bits pixel.
Value: The thumbnail bits pixel.
public int getDataSize()
Gets the resource data size in bytes.
Value: The resource data size.
getDataSize
in class ResourceBlock
public int getFormat()
Gets the thumbnail data format.
Value: The thumbnail data format.
public int getHeight()
Gets the height of thumbnail in pixels.
Value: The thumbnail height.
public int getMinimalVersion()
Gets the minimal required psd version.
Value: The minimal psd version.
getMinimalVersion
in class ResourceBlock
public short getPlanesCount()
Gets the planes count.
Value: The thumbnail planes count.
public int getSizeAfterCompression()
Gets the size after compression. Used for consistency check.
Value: The size after compression.
public Color[] getThumbnailData()
Gets the thumbnail data.
Value: The thumbnail data.
public int getTotalSize()
Gets the total data size.
Value: The total data size.
public int getWidth()
Gets the width of thumbnail in pixels.
Value: The thumbnail width.
public int getWidthBytes()
Gets the row width in bytes.
Value: The row width in bytes.
protected void saveCommonData(StreamContainer streamContainer)
Saves the common data.
streamContainer
- The stream container.protected void saveData(StreamContainer streamContainer)
Saves the resource block data.
saveData
in class ResourceBlock
streamContainer
- The stream container to save to.public void setBitsPixel(short value)
Sets the bits pixel.
Value: The thumbnail bits pixel.
public void setFormat(int value)
Sets the thumbnail data format.
Value: The thumbnail data format.
public void setHeight(int value)
Sets the height of thumbnail in pixels.
Value: The thumbnail height.
public void setPlanesCount(short value)
Sets the planes count.
Value: The thumbnail planes count.
public void setSizeAfterCompression(int value)
Sets the size after compression. Used for consistency check.
Value: The size after compression.
public void setThumbnailData(Color[] value)
Sets the thumbnail data.
Value: The thumbnail data.
public void setWidth(int value)
Sets the width of thumbnail in pixels.
Value: The thumbnail width.
public void validateValues()
Validates the resource values.
validateValues
in class ResourceBlock
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |