Hue2Resource Class

Summary: Class Hue2Resource. Resource of Exposure Adjustment Layer

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

Full Name: aspose.psd.fileformats.psd.layers.layerresources.Hue2Resource

Inheritance: AdjustmentLayerResource

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
Hue2Resource()Initializes a new instance of the Hue2Resource class.
Hue2Resource(data)Initializes a new instance of the Hue2Resource class.

Properties

NameTypeAccessDescription
PSB_RESOURCE_SIGNATURE [static]intrThe PSB-specific resource signature.
RESOURCE_SIGNATURE [static]intrThe common resource signature.
TYPE_TOOL_KEY [static]intrThe type tool info key.
colorizeboolr/wGets or sets a value indicating whether this Hue2Resource is colorize.
hueshortr/wGets or sets the master hue.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
lightnessshortr/wGets or sets the master lightness.
psd_versionintrGets the psd version.
rangesColorRangeHsl[]rGets the ranges of Hue/Saturation Adjustment Layer.
Ranges in PS can change names if range is changed, so we should work by index
saturationshortr/wGets or sets the master saturation.
signatureintrGets the signature.
versionshortrGets the version. Default is 2

Methods

NameDescription
save(stream_container, psd_version)Saves the resource to the specified stream container.

Constructor: Hue2Resource()

 Hue2Resource() 

Initializes a new instance of the Hue2Resource class.

Constructor: Hue2Resource(data)

 Hue2Resource(data) 

Initializes a new instance of the Hue2Resource class.

Parameters:

ParameterTypeDescription
databyteThe data of the resource.

Method: save(stream_container, psd_version)

 save(stream_container, psd_version) 

Saves the resource to the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container to save to.
psd_versionintThe PSD version.