BritResource Class
Contents
[
Hide
]Summary: Class BritResource. Resource of Brightness/Contrast Adjustment Layer
Module: aspose.psd.fileformats.psd.layers.layerresources
Full Name: aspose.psd.fileformats.psd.layers.layerresources.BritResource
Inheritance: AdjustmentLayerResource
Aspose.PSD Version: 24.12.0
Constructors
| Name | Description |
|---|---|
| BritResource() | Initializes a new instance of the BritResource class. |
| BritResource(brightness, contrast, mean_value_for_brightness_and_contrast, lab_color) | Initializes a new instance of the BritResource class. |
| BritResource(bytes) | Initializes a new instance of the BritResource class. PSD format specification contains following description: 2 Brightness 2 Contrast 2 Mean value for brightness and contrast 1 Lab color only It is not used in modern PSD(CS5 and up) where CgEd is. CgEd stores info properties |
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. |
| brightness | short | r/w | Gets or sets the brightness. |
| contrast | short | r/w | Gets or sets the contrast. |
| key | int | r | Gets the layer resource key. |
| lab_color | bool | r/w | Gets or sets a value indicating whether [lab color]. |
| length | int | r | Gets the layer resource length in bytes. |
| mean_value_for_brightness_and_contrast | short | r/w | Gets or sets the mean value for brightness and contrast. |
| psd_version | int | r | Gets the minimal psd version required for layer resource. 0 indicates no restrictions. |
| signature | int | r | Gets the signature. |
Methods
| Name | Description |
|---|---|
| save(stream_container, psd_version) | Saves the resource to the specified stream container. |
Constructor: BritResource()
BritResource()
Initializes a new instance of the BritResource class.
Constructor: BritResource(brightness, contrast, mean_value_for_brightness_and_contrast, lab_color)
BritResource(brightness, contrast, mean_value_for_brightness_and_contrast, lab_color)
Initializes a new instance of the BritResource class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| brightness | short | The brightness. |
| contrast | short | The contrast. |
| mean_value_for_brightness_and_contrast | short | The mean value for brightness and contrast. |
| lab_color | bool | if set to |
Constructor: BritResource(bytes)
BritResource(bytes)
Initializes a new instance of the BritResource class.
PSD format specification contains following description:
2 Brightness
2 Contrast
2 Mean value for brightness and contrast
1 Lab color only
It is not used in modern PSD(CS5 and up) where CgEd is. CgEd stores info properties
Parameters:
| Parameter | Type | Description |
|---|---|---|
| bytes | byte | The bytes. |
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. |