PhflResourceVersion2 Class
Contents
[
Hide
]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.9.0
Constructors
Name | Description |
---|---|
PhflResourceVersion2() | Initializes a new instance of the PhflResourceVersion2 class. |
PhflResourceVersion2(data) | Initializes a new instance of the PhflResourceVersion2 class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
PSB_RESOURCE_SIGNATURE [static] | int | r | The PSB-specific resource signature. |
RESOURCE_SIGNATURE [static] | int | r | The common resource signature. |
TYPE_TOOL_KEY [static] | int | r | The type tool info key. |
color_space | short | r | Gets the color space. |
component_a | short | r/w | Gets or sets the A component of color |
component_b | short | r/w | Gets or sets the B component |
component_l | short | r/w | Gets or sets the L component of color |
density | int | r/w | Gets or sets the density. |
key | int | r | Gets the layer resource key. |
length | int | r | Gets the layer resource length in bytes. |
preserve_luminosity | bool | r/w | Gets or sets a value indicating whether [preserve luminosity]. |
psd_version | int | r | Gets the psd version. |
signature | int | r | Gets the signature. |
version | short | r | Gets the version. |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
data | byte | The data pf the resource. |
Method: get_rgb_color()
get_rgb_color()
Gets the color.
Returns
Type | Description |
---|---|
Color | The RGB color |
Method: save(stream_container, psd_version)
save(stream_container, psd_version)
Saves the resource to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
stream_container | StreamContainer | The stream container to save to. |
psd_version | int | The PSD version. |
Method: set_rgb_color(color)
set_rgb_color(color)
Sets the RGB color.
Parameters:
Parameter | Type | Description |
---|---|---|
color | Color | The color. |