Packages

 

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

Class CgEdResource

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        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
        Returns:
        the layer resource key.
      • getPsdVersion

        public int getPsdVersion()

        Gets the psd version.

        Specified by:
        getPsdVersion in class LayerResource
        Returns:
        the psd version.
      • getVersion

        public final int getVersion()

        Gets the version.

        Returns:
        the version.
      • setVersion

        public final void setVersion(int value)

        Sets the version.

        Parameters:
        value - the version.
      • getBrightness

        public final int getBrightness()

        Gets the brightness.

        Returns:
        the brightness.
      • setBrightness

        public final void setBrightness(int value)

        Sets the brightness.

        Parameters:
        value - the brightness.
      • getContrast

        public final int getContrast()

        Gets the contrast.

        Returns:
        the contrast.
      • setContrast

        public final void setContrast(int value)

        Sets the contrast.

        Parameters:
        value - the contrast.
      • getMeanValueForBrightnessAndContrast

        public final int getMeanValueForBrightnessAndContrast()

        Gets the mean value for brightness and contrast.

        Returns:
        the mean value for brightness and contrast.
      • setMeanValueForBrightnessAndContrast

        public final void setMeanValueForBrightnessAndContrast(int value)

        Sets the mean value for brightness and contrast.

        Parameters:
        value - the mean value for brightness and contrast.
      • getLabColor

        public final boolean getLabColor()

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

        Returns:
        a value indicating whether [lab color] is used.
      • setLabColor

        public final void setLabColor(boolean value)

        Sets a value indicating whether [lab color] is used.

        Parameters:
        value - a value indicating whether [lab color] is used.
      • getUseLegacy

        public final boolean getUseLegacy()

        Gets a value indicating whether [use legacy].

        Returns:
        a value indicating whether [use legacy].
      • setUseLegacy

        public final void setUseLegacy(boolean value)

        Sets a value indicating whether [use legacy].

        Parameters:
        value - a value indicating whether [use legacy].
      • getAuto

        public final boolean getAuto()

        Gets a value indicating whether this CgEdResource is automatic.

        Returns:
        a value indicating whether this CgEdResource is automatic.
      • setAuto

        public final void setAuto(boolean value)

        Sets a value indicating whether this CgEdResource is automatic.

        Parameters:
        value - a value indicating whether this CgEdResource is automatic.
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
        Returns:
        the layer resource length in bytes.
      • 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.