ThumbnailResource class

ThumbnailResource class

The thumbnail resource block.

Inheritance: ThumbnailResourceResourceBlock

The ThumbnailResource type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the ThumbnailResource class.

Properties

PropertyDescription
signatureGets the resource signature. Should be always ‘8BIM’.
idGets or sets the unique identifier for the resource.
nameGets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).
data_sizeGets the resource data size in bytes.
sizeGets the resource block size in bytes including its data.
minimal_versionGets the minimal required psd version.
RESOUCE_BLOCK_SIGNATUREThe resource signature.
jpeg_optionsGets 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.
widthGets or sets the width of thumbnail in pixels.
heightGets or sets the height of thumbnail in pixels.
width_bytesGets the row width in bytes.
total_sizeGets the total data size.
size_after_compressionGets or sets the size after compression. Used for consistency check.
bits_pixelGets or sets the bits pixel.
planes_countGets or sets the planes count.
thumbnail_argb_32_dataGets or sets the 32-bit ARGB thumbnail data.
thumbnail_dataGets or sets the thumbnail data.

Methods

MethodDescription
saveSaves the resource block to the specified stream.
validate_valuesValidates the resource values.

See Also