UnitArrayStructure Class

Summary: Defines the UnitArrayStructure class that holds float values array and their measure unit.
It is used in the PSD file resources, usually by ObjectArrayStructure.

Module: aspose.psd.fileformats.psd.layers.layerresources.typetoolinfostructures

Full Name: aspose.psd.fileformats.psd.layers.layerresources.typetoolinfostructures.UnitArrayStructure

Inheritance: OSTypeStructure

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
UnitArrayStructure(key_name, unit_type, values)Initializes a new instance of the UnitArrayStructure class.

Properties

NameTypeAccessDescription
STRUCTURE_KEY [static]intrDefines the ‘UnFl’ UnitArrayStructure key.
keyintrGets this unit array structure key.
key_nameClassIDr/wGets or sets the key name.
lengthintrGets the OSTypeStructure length in bytes.
unit_typeUnitTypesr/wGets or sets the measure unit type of the UnitArrayStructure values.
value_countintrGets the value count.
valuesdoubler/wGets or sets the unit array structure values.

Methods

NameDescription
get_header_length()Gets the header length.
save(stream_container)Saves the structure to the specified stream container.
save_without_key_name(stream_container)Saves the structure to the specified stream container.

Constructor: UnitArrayStructure(key_name, unit_type, values)

 UnitArrayStructure(key_name, unit_type, values) 

Initializes a new instance of the UnitArrayStructure class.

Parameters:

ParameterTypeDescription
key_nameClassIDName of the key.
unit_typeUnitTypesType of the unit.
valuesdoubleThe values.

Method: get_header_length()

 get_header_length() 

Gets the header length.

Returns

TypeDescription
intThe header length

Method: save(stream_container)

 save(stream_container) 

Saves the structure to the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.

Method: save_without_key_name(stream_container)

 save_without_key_name(stream_container) 

Saves the structure to the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.