PhflResourceVersion2 Class

Summary: Class PhflResource. Resource of Exposure Adjustment Layer
2 Version ( = 3 ) or ( = 2 )
12 4 bytes each for XYZ color(Only in Version 3)
10 2 bytes color space followed by 4 * 2 bytes color component(Only in Version 2)
4 Density
1 Preserve Luminosity

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

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

Inheritance: PhflResource

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
PhflResourceVersion2()Initializes a new instance of the PhflResourceVersion2 class.
PhflResourceVersion2(data)Initializes a new instance of the PhflResourceVersion2 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.
color_spaceshortrGets the color space.
component_ashortr/wGets or sets the A component of color
component_bshortr/wGets or sets the B component
component_lshortr/wGets or sets the L component of color
densityintr/wGets or sets the density.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
preserve_luminosityboolr/wGets or sets a value indicating whether [preserve luminosity].
psd_versionintrGets the psd version.
signatureintrGets the signature.
versionshortrGets the version.

Methods

NameDescription
get_rgb_color()Gets the color.
save(stream_container, psd_version)Saves the resource to the specified stream container.
set_rgb_color(color)Sets the RGB color.

Constructor: PhflResourceVersion2()

 PhflResourceVersion2() 

Initializes a new instance of the PhflResourceVersion2 class.

Constructor: PhflResourceVersion2(data)

 PhflResourceVersion2(data) 

Initializes a new instance of the PhflResourceVersion2 class.

Parameters:

ParameterTypeDescription
databyteThe data pf the resource.

Method: get_rgb_color()

 get_rgb_color() 

Gets the color.

Returns

TypeDescription
ColorThe RGB color

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.

Method: set_rgb_color(color)

 set_rgb_color(color) 

Sets the RGB color.

Parameters:

ParameterTypeDescription
colorColorThe color.