public class ThumbnailResource extends ResourceBlock
The thumbnail resource block.
ResourceBlock.ResourceBlockState
ResouceBlockMeSaSignature, ResouceBlockSignature
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
public ThumbnailResource()
Initializes a new instance of the ThumbnailResource
class.
public final 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 final 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 final int getFormat()
Gets or sets the thumbnail data format.
Value: The thumbnail data format.public final void setFormat(int value)
Gets or sets the thumbnail data format.
Value: The thumbnail data format.public final int getWidth()
Gets or sets the width of thumbnail in pixels.
Value: The thumbnail width.public final void setWidth(int value)
Gets or sets the width of thumbnail in pixels.
Value: The thumbnail width.public final int getHeight()
Gets or sets the height of thumbnail in pixels.
Value: The thumbnail height.public final void setHeight(int value)
Gets or sets the height of thumbnail in pixels.
Value: The thumbnail height.public final int getWidthBytes()
Gets the row width in bytes.
Value: The row width in bytes.public final int getTotalSize()
Gets the total data size.
Value: The total data size.public final int getSizeAfterCompression()
Gets or sets the size after compression. Used for consistency check.
Value: The size after compression.public final short getBitsPixel()
Gets or sets the bits pixel.
Value: The thumbnail bits pixel.public final void setBitsPixel(short value)
Gets or sets the bits pixel.
Value: The thumbnail bits pixel.public final short getPlanesCount()
Gets or sets the planes count.
Value: The thumbnail planes count.public final void setPlanesCount(short value)
Gets or sets the planes count.
Value: The thumbnail planes count.public final int[] getThumbnailArgb32Data()
Gets or sets the 32-bit ARGB thumbnail data.
Value: The 32-bit ARGB thumbnail data.public final void setThumbnailArgb32Data(int[] value)
Gets or sets the 32-bit ARGB thumbnail data.
Value: The 32-bit ARGB thumbnail data.public final Color[] getThumbnailData()
Gets or sets the thumbnail data.
Value: The thumbnail data.public final 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