ThumbnailResource
Inheritance: java.lang.Object, ResourceBlock
The thumbnail resource block.
Constructors
| Constructor | Description |
|---|---|
| ThumbnailResource() | Initializes a new instance of the ThumbnailResource class. |
Methods
| Method | Description |
|---|---|
| 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. |
| 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. |
| getWidth() | Gets or sets the width of thumbnail in pixels. |
| setWidth(int value) | Gets or sets the width of thumbnail in pixels. |
| getHeight() | Gets or sets the height of thumbnail in pixels. |
| setHeight(int value) | Gets or sets the height of thumbnail in pixels. |
| getWidthBytes() | Gets the row width in bytes. |
| getTotalSize() | Gets the total data size. |
| getSizeAfterCompression() | Gets or sets the size after compression. Used for consistency check. |
| getBitsPixel() | Gets or sets the bits pixel. |
| setBitsPixel(short value) | Gets or sets the bits pixel. |
| getPlanesCount() | Gets or sets the planes count. |
| setPlanesCount(short value) | Gets or sets the planes count. |
| getThumbnailArgb32Data() | Gets or sets the 32-bit ARGB thumbnail data. |
| setThumbnailArgb32Data(int[] value) | Gets or sets the 32-bit ARGB thumbnail data. |
| getThumbnailData() | Gets or sets the thumbnail data. |
| setThumbnailData(com.aspose.cad.Color[] value) | Gets or sets the thumbnail data. |
| getDataSize() | Gets the resource data size in bytes. |
| getMinimalVersion() | Gets the minimal required psd version. |
| validateValues() | Validates the resource values. |
ThumbnailResource()
public ThumbnailResource()
Initializes a new instance of the ThumbnailResource class.
getJpegOptions()
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.
Returns: JpegOptions - The JPEG options.
setJpegOptions(JpegOptions value)
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | JpegOptions | The JPEG options. |
getWidth()
public int getWidth()
Gets or sets the width of thumbnail in pixels.
Returns: int - The thumbnail width.
setWidth(int value)
public void setWidth(int value)
Gets or sets the width of thumbnail in pixels.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The thumbnail width. |
getHeight()
public int getHeight()
Gets or sets the height of thumbnail in pixels.
Returns: int - The thumbnail height.
setHeight(int value)
public void setHeight(int value)
Gets or sets the height of thumbnail in pixels.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The thumbnail height. |
getWidthBytes()
public int getWidthBytes()
Gets the row width in bytes.
Returns: int - The row width in bytes.
getTotalSize()
public int getTotalSize()
Gets the total data size.
Returns: int - The total data size.
getSizeAfterCompression()
public int getSizeAfterCompression()
Gets or sets the size after compression. Used for consistency check.
Returns: int - The size after compression.
getBitsPixel()
public short getBitsPixel()
Gets or sets the bits pixel.
Returns: short - The thumbnail bits pixel.
setBitsPixel(short value)
public void setBitsPixel(short value)
Gets or sets the bits pixel.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | short | The thumbnail bits pixel. |
getPlanesCount()
public short getPlanesCount()
Gets or sets the planes count.
Returns: short - The thumbnail planes count.
setPlanesCount(short value)
public void setPlanesCount(short value)
Gets or sets the planes count.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | short | The thumbnail planes count. |
getThumbnailArgb32Data()
public int[] getThumbnailArgb32Data()
Gets or sets the 32-bit ARGB thumbnail data.
Returns: int[] - The 32-bit ARGB thumbnail data.
setThumbnailArgb32Data(int[] value)
public void setThumbnailArgb32Data(int[] value)
Gets or sets the 32-bit ARGB thumbnail data.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int[] | The 32-bit ARGB thumbnail data. |
getThumbnailData()
public com.aspose.cad.Color[] getThumbnailData()
Gets or sets the thumbnail data.
Returns: com.aspose.cad.Color[] - The thumbnail data.
setThumbnailData(com.aspose.cad.Color[] value)
public void setThumbnailData(com.aspose.cad.Color[] value)
Gets or sets the thumbnail data.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.cad.Color[] | The thumbnail data. |
getDataSize()
public int getDataSize()
Gets the resource data size in bytes.
Returns: int - The resource data size.
getMinimalVersion()
public int getMinimalVersion()
Gets the minimal required psd version.
Returns: int - The minimal psd version.
validateValues()
public void validateValues()
Validates the resource values.