public class BritResource extends AdjustmentLayerResource
Class BritResource. Resource of Brightness/Contrast Adjustment Layer
AdjustmentLayerResource,
LayerResource| Modifier and Type | Field and Description |
|---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature| Constructor and Description |
|---|
BritResource()
Initializes a new instance of the
BritResource class. |
BritResource(byte[] bytes)
Initializes a new instance of the
BritResource class. |
BritResource(short brightness,
short contrast,
short meanValueForBrightnessAndContrast,
boolean labColor)
Initializes a new instance of the
BritResource class. |
| Modifier and Type | Method and Description |
|---|---|
short |
getBrightness()
Gets or sets the brightness.
|
short |
getContrast()
Gets or sets the contrast.
|
int |
getKey()
Gets the layer resource key.
|
boolean |
getLabColor()
Gets or sets a value indicating whether [lab color].
|
int |
getLength()
Gets the layer resource length in bytes.
|
short |
getMeanValueForBrightnessAndContrast()
Gets or sets the mean value for brightness and contrast.
|
int |
getPsdVersion()
Gets the psd version.
|
void |
setBrightness(short value)
Gets or sets the brightness.
|
void |
setContrast(short value)
Gets or sets the contrast.
|
void |
setLabColor(boolean value)
Gets or sets a value indicating whether [lab color].
|
void |
setMeanValueForBrightnessAndContrast(short value)
Gets or sets the mean value for brightness and contrast.
|
getData, getSignature, savetoStringpublic static final int TypeToolKey
The type tool info key.
public BritResource()
Initializes a new instance of the BritResource class.
public BritResource(short brightness,
short contrast,
short meanValueForBrightnessAndContrast,
boolean labColor)
Initializes a new instance of the BritResource class.
brightness - The brightness.contrast - The contrast.meanValueForBrightnessAndContrast - The mean value for brightness and contrast.labColor - if set to true [lab color].public BritResource(byte[] 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
bytes - The bytes.public final short getBrightness()
Gets or sets the brightness.
Value: The brightness.public final void setBrightness(short value)
Gets or sets the brightness.
Value: The brightness.public final short getContrast()
Gets or sets the contrast.
Value: The contrast.public final void setContrast(short value)
Gets or sets the contrast.
Value: The contrast.public final short getMeanValueForBrightnessAndContrast()
Gets or sets the mean value for brightness and contrast.
Value: The mean value for brightness and contrast.public final void setMeanValueForBrightnessAndContrast(short value)
Gets or sets the mean value for brightness and contrast.
Value: The mean value for brightness and contrast.public final boolean getLabColor()
Gets or sets a value indicating whether [lab color].
Value:true if [lab color]; otherwise, false.public final void setLabColor(boolean value)
Gets or sets a value indicating whether [lab color].
Value:true if [lab color]; otherwise, false.public int getKey()
Gets the layer resource key.
getKey in class LayerResourcepublic int getLength()
Gets the layer resource length in bytes.
getLength in class LayerResourcepublic int getPsdVersion()
Gets the psd version.
getPsdVersion in class LayerResourceCopyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.