public class ThumbnailResource extends ResourceBlock
The thumbnail resource block.
ResourceBlock.ResourceBlockState
RESOUCE_BLOCK_SIGNATURE
Constructor and Description |
---|
ThumbnailResource()
Initializes a new instance of the
ThumbnailResource class. |
Modifier and Type | Method and Description |
---|---|
short |
getBitsPixel()
Gets or sets the bits pixel.
|
int |
getDataSize()
Gets the resource data size in bytes.
|
int |
getFormat()
Gets or sets the thumbnail data format.
|
int |
getHeight()
Gets or sets the height of thumbnail in pixels.
|
JpegOptions |
getJpegOptions()
Gets or sets the JPEG options.
|
int |
getMinimalVersion()
Gets the minimal required psd version.
|
short |
getPlanesCount()
Gets or sets the planes count.
|
int |
getSizeAfterCompression()
Gets or sets the size after compression.
|
int[] |
getThumbnailArgb32Data()
Gets or sets the 32-bit ARGB thumbnail data.
|
Color[] |
getThumbnailData()
Gets or sets the thumbnail data.
|
int |
getTotalSize()
Gets the total data size.
|
int |
getWidth()
Gets or sets the width of thumbnail in pixels.
|
int |
getWidthBytes()
Gets the row width in bytes.
|
void |
setBitsPixel(short value)
Gets or sets the bits pixel.
|
void |
setFormat(int value)
Gets or sets the thumbnail data format.
|
void |
setHeight(int value)
Gets or sets the height of thumbnail in pixels.
|
void |
setJpegOptions(JpegOptions value)
Gets or sets the JPEG options.
|
void |
setPlanesCount(short value)
Gets or sets the planes count.
|
void |
setThumbnailArgb32Data(int[] value)
Gets or sets the 32-bit ARGB thumbnail data.
|
void |
setThumbnailData(Color[] value)
Gets or sets the thumbnail data.
|
void |
setWidth(int value)
Gets or sets the width of thumbnail in pixels.
|
void |
validateValues()
Validates the resource values.
|
getID, getName, getSignature, getSize, save, setID, setName, setState_internalized
public ThumbnailResource()
Initializes a new instance of the ThumbnailResource
class.
public JpegOptions getJpegOptions()
Gets or sets the JPEG options. Suitable when thumbnail resource is saved into JPEG file format only. This option has no effect when RAW format is defined.
Value: The JPEG options.public void setJpegOptions(JpegOptions value)
Gets or sets the JPEG options. Suitable when thumbnail resource is saved into JPEG file format only. This option has no effect when RAW format is defined.
Value: The JPEG options.public int getFormat()
Gets or sets the thumbnail data format.
Value: The thumbnail data format.public void setFormat(int value)
Gets or sets the thumbnail data format.
Value: The thumbnail data format.public int getWidth()
Gets or sets the width of thumbnail in pixels.
Value: The thumbnail width.public void setWidth(int value)
Gets or sets the width of thumbnail in pixels.
Value: The thumbnail width.public int getHeight()
Gets or sets the height of thumbnail in pixels.
Value: The thumbnail height.public void setHeight(int value)
Gets or sets the height of thumbnail in pixels.
Value: The thumbnail height.public int getWidthBytes()
Gets the row width in bytes.
Value: The row width in bytes.public int getTotalSize()
Gets the total data size.
Value: The total data size.public int getSizeAfterCompression()
Gets or sets the size after compression. Used for consistency check.
Value: The size after compression.public short getBitsPixel()
Gets or sets the bits pixel.
Value: The thumbnail bits pixel.public void setBitsPixel(short value)
Gets or sets the bits pixel.
Value: The thumbnail bits pixel.public short getPlanesCount()
Gets or sets the planes count.
Value: The thumbnail planes count.public void setPlanesCount(short value)
Gets or sets the planes count.
Value: The thumbnail planes count.public int[] getThumbnailArgb32Data()
Gets or sets the 32-bit ARGB thumbnail data.
Value: The 32-bit ARGB thumbnail data.public void setThumbnailArgb32Data(int[] value)
Gets or sets the 32-bit ARGB thumbnail data.
Value: The 32-bit ARGB thumbnail data.public Color[] getThumbnailData()
Gets or sets the thumbnail data.
Value: The thumbnail data.public void setThumbnailData(Color[] value)
Gets or sets the thumbnail data.
Value: The thumbnail data.public int getDataSize()
Gets the resource data size in bytes.
Value: The resource data size.getDataSize
in class ResourceBlock
public int getMinimalVersion()
Gets the minimal required psd version.
Value: The minimal psd version.getMinimalVersion
in class ResourceBlock
public void validateValues()
Validates the resource values.
validateValues
in class ResourceBlock
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.