ExpaResource Class

Summary: Class ExpaResource. Resource of Exposure Adjustment Layer

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

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

Inheritance: AdjustmentLayerResource

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
ExpaResource()Initializes a new instance of the ExpaResource class.
ExpaResource(bytes)Initializes a new instance of the ExpaResource class.
ExpaResource(exposure, offset, gamma)Initializes a new instance of the ExpaResource 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.
exposurefloatr/wGets or sets the exposure.
gamma_correctionfloatr/wGets or sets the gamma.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
offsetfloatr/wGets or sets the offset.
psd_versionintrGets the psd version.
signatureintrGets the signature.
versionshortrGets the version. Default is 1

Methods

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

Constructor: ExpaResource()

 ExpaResource() 

Initializes a new instance of the ExpaResource class.

Constructor: ExpaResource(bytes)

 ExpaResource(bytes) 

Initializes a new instance of the ExpaResource class.

Parameters:

ParameterTypeDescription
bytesbyteThe bytes.

Constructor: ExpaResource(exposure, offset, gamma)

 ExpaResource(exposure, offset, gamma) 

Initializes a new instance of the ExpaResource class.

Parameters:

ParameterTypeDescription
exposurefloatThe exposure.
offsetfloatThe offset.
gammafloatThe gamma.

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.