public class CgEdResource extends AdjustmentLayerResource
Class CgEdResource. Content Generator Extra Data (Photoshop CS5)
LayerResource| Modifier and Type | Field and Description |
|---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature| Constructor and Description |
|---|
CgEdResource()
Initializes a new instance of the
CgEdResource class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAuto()
Gets or sets a value indicating whether this
CgEdResource is automatic. |
int |
getBrightness()
Gets or sets the brightness.
|
int |
getContrast()
Gets or sets the contrast.
|
int |
getKey()
Gets the layer resource key.
|
boolean |
getLabColor()
Gets or sets a value indicating whether [lab color] is used.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getMeanValueForBrightnessAndContrast()
Gets or sets the mean value for brightness and contrast.
|
int |
getPsdVersion()
Gets the psd version.
|
boolean |
getUseLegacy()
Gets or sets a value indicating whether [use legacy].
|
int |
getVersion()
Gets or sets the version.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setAuto(boolean value)
Gets or sets a value indicating whether this
CgEdResource is automatic. |
void |
setBrightness(int value)
Gets or sets the brightness.
|
void |
setContrast(int value)
Gets or sets the contrast.
|
void |
setLabColor(boolean value)
Gets or sets a value indicating whether [lab color] is used.
|
void |
setMeanValueForBrightnessAndContrast(int value)
Gets or sets the mean value for brightness and contrast.
|
void |
setUseLegacy(boolean value)
Gets or sets a value indicating whether [use legacy].
|
void |
setVersion(int value)
Gets or sets the version.
|
getData, getSignaturetoStringpublic static final int TypeToolKey
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 LayerResourcepublic int getPsdVersion()
Gets the psd version.
getPsdVersion in class LayerResourcepublic final int getVersion()
Gets or sets the version.
Value: The version.public final void setVersion(int value)
Gets or sets the version.
Value: The version.public final int getBrightness()
Gets or sets the brightness.
Value: The brightness.public final void setBrightness(int value)
Gets or sets the brightness.
Value: The brightness.public final int getContrast()
Gets or sets the contrast.
Value: The contrast.public final void setContrast(int value)
Gets or sets the contrast.
Value: The contrast.public final int getMeanValueForBrightnessAndContrast()
Gets or sets the mean value for brightness and contrast.
Value: The mean value for brightness and contrast.public final void setMeanValueForBrightnessAndContrast(int 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] is used.
Value:true if used [lab color]; otherwise, false.public final void setLabColor(boolean value)
Gets or sets a value indicating whether [lab color] is used.
Value:true if used [lab color]; otherwise, false.public final boolean getUseLegacy()
Gets or sets a value indicating whether [use legacy].
Value:true if [use legacy]; otherwise, false.public final void setUseLegacy(boolean value)
Gets or sets a value indicating whether [use legacy].
Value:true if [use legacy]; otherwise, false.public final boolean getAuto()
Gets or sets a value indicating whether this CgEdResource is automatic.
true if automatic; otherwise, false.public final void setAuto(boolean value)
Gets or sets a value indicating whether this CgEdResource is automatic.
true if automatic; otherwise, false.public int getLength()
Gets the layer resource length in bytes.
getLength in class LayerResourcepublic void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
save in class AdjustmentLayerResourcestreamContainer - The stream container to save to.psdVersion - The PSD version.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.