BritResource Class

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.9.0

Constructors

NameDescription
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

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.
brightnessshortr/wGets or sets the brightness.
contrastshortr/wGets or sets the contrast.
keyintrGets the layer resource key.
lab_colorboolr/wGets or sets a value indicating whether [lab color].
lengthintrGets the layer resource length in bytes.
mean_value_for_brightness_and_contrastshortr/wGets or sets the mean value for brightness and contrast.
psd_versionintrGets the psd version.
signatureintrGets the signature.

Methods

NameDescription
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:

ParameterTypeDescription
brightnessshortThe brightness.
contrastshortThe contrast.
mean_value_for_brightness_and_contrastshortThe mean value for brightness and contrast.
lab_colorboolif set to true [lab color].

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:

ParameterTypeDescription
bytesbyteThe bytes.

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.