TiffDataType Class

Summary: The tiff data type.

Module: aspose.psd.fileformats.tiff

Full Name: aspose.psd.fileformats.tiff.TiffDataType

Aspose.PSD Version: 24.9.0

Properties

NameTypeAccessDescription
aligned_data_sizeuintrGets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
countuintrGets the count of elements.
data_sizeuintrGets the additional data size in bytes (in case the 12 bytes is not enough to fit the tag data).
idushortrGets tag id integer representation.
is_validboolrGets a value indicating whether tag data is valid. The valid tag contains data which may be preserved. The invalid tag cannot be stored.
tag_idTiffTagsrGets the tag id.
tag_typeTiffDataTypesrGets the tag type.
valueobjectr/wGets or sets the value this data type contains.

Methods

NameDescription
compare_to(obj)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
deep_clone()Performs a deep clone of this instance.
read_tag(data_stream, position)Reads the tag data.
write_additional_data(data_stream)Writes the additional tag data.
write_tag(data_stream, additional_data_offset)Writes the tag data.

Method: compare_to(obj)

 compare_to(obj) 

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Parameters:

ParameterTypeDescription
objobjectAn object to compare with this instance.

Returns

TypeDescription
intA 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
Value
Meaning
Less than zero
This instance is less than .
Zero
This instance is equal to .
Greater than zero
This instance is greater than .

Method: deep_clone()

 deep_clone() 

Performs a deep clone of this instance.

Returns

TypeDescription
TiffDataTypeA deep clone of the current instance.

Method: read_tag(data_stream, position) [static]

 read_tag(data_stream, position) 

Reads the tag data.

Parameters:

ParameterTypeDescription
data_streamTiffStreamReaderThe data stream.
positionlongThe tag position.

Returns

TypeDescription
TiffDataTypeThe read tag.

Method: write_additional_data(data_stream)

 write_additional_data(data_stream) 

Writes the additional tag data.

Parameters:

ParameterTypeDescription
data_streamTiffStreamWriterThe data stream.

Returns

TypeDescription
longThe actual bytes written.

Method: write_tag(data_stream, additional_data_offset)

 write_tag(data_stream, additional_data_offset) 

Writes the tag data.

Parameters:

ParameterTypeDescription
data_streamTiffStreamWriterThe data stream.
additional_data_offsetlongThe offset to write additional data to.