public class CgEdResource extends AdjustmentLayerResource
Class CgEdResource. Content Generator Extra Data (Photoshop CS5)
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 |
---|
CgEdResource()
Initializes a new instance of the
CgEdResource class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAuto()
Gets a value indicating whether this
CgEdResource is automatic. |
int |
getBrightness()
Gets the brightness.
|
int |
getContrast()
Gets the contrast.
|
int |
getKey()
Gets the layer resource key.
|
boolean |
getLabColor()
Gets a value indicating whether [lab color] is used.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getMeanValueForBrightnessAndContrast()
Gets the mean value for brightness and contrast.
|
int |
getPsdVersion()
Gets the psd version.
|
boolean |
getUseLegacy()
Gets a value indicating whether [use legacy].
|
int |
getVersion()
Gets the version.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setAuto(boolean value)
Sets a value indicating whether this
CgEdResource is automatic. |
void |
setBrightness(int value)
Sets the brightness.
|
void |
setContrast(int value)
Sets the contrast.
|
void |
setLabColor(boolean value)
Sets a value indicating whether [lab color] is used.
|
void |
setMeanValueForBrightnessAndContrast(int value)
Sets the mean value for brightness and contrast.
|
void |
setUseLegacy(boolean value)
Sets a value indicating whether [use legacy].
|
void |
setVersion(int value)
Sets the version.
|
getSignature
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public CgEdResource()
Initializes a new instance of the CgEdResource
class.
PSD format specification contains following description:
4 Descriptor Version( = 16)
Variable Length Descriptor of extra data
Suggestion: it may not be used in old versions of PS(Before CS5).
public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getPsdVersion()
Gets the psd version.
getPsdVersion
in class LayerResource
public final int getVersion()
Gets the version.
public final void setVersion(int value)
Sets the version.
value
- the version.public final int getBrightness()
Gets the brightness.
public final void setBrightness(int value)
Sets the brightness.
value
- the brightness.public final int getContrast()
Gets the contrast.
public final void setContrast(int value)
Sets the contrast.
value
- the contrast.public final int getMeanValueForBrightnessAndContrast()
Gets the mean value for brightness and contrast.
public final void setMeanValueForBrightnessAndContrast(int 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] is used.
public final void setLabColor(boolean value)
Sets a value indicating whether [lab color] is used.
value
- a value indicating whether [lab color] is used.public final boolean getUseLegacy()
Gets a value indicating whether [use legacy].
public final void setUseLegacy(boolean value)
Sets a value indicating whether [use legacy].
value
- a value indicating whether [use legacy].public final boolean getAuto()
Gets a value indicating whether this CgEdResource
is automatic.
CgEdResource
is automatic.public final void setAuto(boolean value)
Sets a value indicating whether this CgEdResource
is automatic.
value
- a value indicating whether this CgEdResource
is automatic.public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
save
in class AdjustmentLayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.