Packages

 

com.aspose.psd.fileformats.psd.layers.layerresources

Class CgEdResource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • CgEdResource

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

    • Method Detail

      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
      • getVersion

        public final int getVersion()

        Gets or sets the version.

        Value: The version.
      • setVersion

        public final void setVersion(int value)

        Gets or sets the version.

        Value: The version.
      • getBrightness

        public final int getBrightness()

        Gets or sets the brightness.

        Value: The brightness.
      • setBrightness

        public final void setBrightness(int value)

        Gets or sets the brightness.

        Value: The brightness.
      • getContrast

        public final int getContrast()

        Gets or sets the contrast.

        Value: The contrast.
      • setContrast

        public final void setContrast(int value)

        Gets or sets the contrast.

        Value: The contrast.
      • getMeanValueForBrightnessAndContrast

        public final int getMeanValueForBrightnessAndContrast()

        Gets or sets the mean value for brightness and contrast.

        Value: The mean value for brightness and contrast.
      • setMeanValueForBrightnessAndContrast

        public final void setMeanValueForBrightnessAndContrast(int value)

        Gets or sets the mean value for brightness and contrast.

        Value: The mean value for brightness and contrast.
      • getLabColor

        public final boolean getLabColor()

        Gets or sets a value indicating whether [lab color] is used.

        Value: true if used [lab color]; otherwise, false.
      • setLabColor

        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.
      • getUseLegacy

        public final boolean getUseLegacy()

        Gets or sets a value indicating whether [use legacy].

        Value: true if [use legacy]; otherwise, false.
      • setUseLegacy

        public final void setUseLegacy(boolean value)

        Gets or sets a value indicating whether [use legacy].

        Value: true if [use legacy]; otherwise, false.
      • getAuto

        public final boolean getAuto()

        Gets or sets a value indicating whether this CgEdResource is automatic.

        Value: true if automatic; otherwise, false.
      • setAuto

        public final void setAuto(boolean value)

        Gets or sets a value indicating whether this CgEdResource is automatic.

        Value: true if automatic; otherwise, false.
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource to the specified stream container.

        Overrides:
        save in class AdjustmentLayerResource
        Parameters:
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.