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:
      • setVersion

        public final void setVersion(int value)

        Sets the version.

        Parameters:
        value -
      • getBrightness

        public final int getBrightness()

        Gets the brightness.

        Returns:
      • setBrightness

        public final void setBrightness(int value)

        Sets the brightness.

        Parameters:
        value -
      • getContrast

        public final int getContrast()

        Gets the contrast.

        Returns:
      • setContrast

        public final void setContrast(int value)

        Sets the contrast.

        Parameters:
        value -
      • getMeanValueForBrightnessAndContrast

        public final int getMeanValueForBrightnessAndContrast()

        Gets the mean value for brightness and contrast.

        Returns:
      • setMeanValueForBrightnessAndContrast

        public final void setMeanValueForBrightnessAndContrast(int value)

        Sets the mean value for brightness and contrast.

        Parameters:
        value -
      • getLabColor

        public final boolean getLabColor()

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

        Returns:
      • setLabColor

        public final void setLabColor(boolean value)

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

        Parameters:
        value -
      • getUseLegacy

        public final boolean getUseLegacy()

        Gets a value indicating whether [use legacy].

        Returns:
      • setUseLegacy

        public final void setUseLegacy(boolean value)

        Sets a value indicating whether [use legacy].

        Parameters:
        value -
      • getAuto

        public final boolean getAuto()

        Gets a value indicating whether this CgEdResource is automatic.

        Returns:
      • setAuto

        public final void setAuto(boolean value)

        Sets a value indicating whether this CgEdResource is automatic.

        Parameters:
        value -
      • 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.