public class BritResource extends AdjustmentLayerResource
Class BritResource. Resource of Brightness/Contrast Adjustment Layer
AdjustmentLayerResource
,
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_TOOL_KEY
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
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 the brightness.
|
short |
getContrast()
Gets the contrast.
|
int |
getKey()
Gets the layer resource key.
|
boolean |
getLabColor()
Gets a value indicating whether [lab color].
|
int |
getLength()
Gets the layer resource length in bytes.
|
short |
getMeanValueForBrightnessAndContrast()
Gets the mean value for brightness and contrast.
|
int |
getPsdVersion()
Gets the psd version.
|
void |
setBrightness(short value)
Sets the brightness.
|
void |
setContrast(short value)
Sets the contrast.
|
void |
setLabColor(boolean value)
Sets a value indicating whether [lab color].
|
void |
setMeanValueForBrightnessAndContrast(short value)
Sets the mean value for brightness and contrast.
|
getSignature, save
toString
public static final int TYPE_TOOL_KEY
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 the brightness.
public final void setBrightness(short value)
Sets the brightness.
value
- the brightness.public final short getContrast()
Gets the contrast.
public final void setContrast(short value)
Sets the contrast.
value
- the contrast.public final short getMeanValueForBrightnessAndContrast()
Gets the mean value for brightness and contrast.
public final void setMeanValueForBrightnessAndContrast(short value)
Sets the mean value for brightness and contrast.
value
- the mean value for brightness and contrast.public final boolean getLabColor()
Gets a value indicating whether [lab color].
public final void setLabColor(boolean value)
Sets a value indicating whether [lab color].
value
- a value indicating whether [lab color].public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the psd version.
getPsdVersion
in class LayerResource