Packages

 

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

Class BritResource

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • BritResource

        public BritResource()

        Initializes a new instance of the BritResource class.

      • BritResource

        public BritResource(short brightness,
                            short contrast,
                            short meanValueForBrightnessAndContrast,
                            boolean labColor)

        Initializes a new instance of the BritResource class.

        Parameters:
        brightness - The brightness.
        contrast - The contrast.
        meanValueForBrightnessAndContrast - The mean value for brightness and contrast.
        labColor - if set to true [lab color].
      • BritResource

        public BritResource(byte[] bytes)

        Initializes a new instance of the BritResource class. PSD format specification contains following description: 2 Brightness 2 Contrast 2 Mean value for brightness and contrast 1 Lab color only It is not used in modern PSD(CS5 and up) where CgEd is. CgEd stores info properties

        Parameters:
        bytes - The bytes.
    • Method Detail

      • getBrightness

        public final short getBrightness()

        Gets the brightness.

        Returns:
      • setBrightness

        public final void setBrightness(short value)

        Sets the brightness.

        Parameters:
        value -
      • getContrast

        public final short getContrast()

        Gets the contrast.

        Returns:
      • setContrast

        public final void setContrast(short value)

        Sets the contrast.

        Parameters:
        value -
      • getMeanValueForBrightnessAndContrast

        public final short getMeanValueForBrightnessAndContrast()

        Gets the mean value for brightness and contrast.

        Returns:
      • setMeanValueForBrightnessAndContrast

        public final void setMeanValueForBrightnessAndContrast(short value)

        Sets the mean value for brightness and contrast.

        Parameters:
        value -
      • getLabColor

        public final boolean getLabColor()

        Gets a value indicating whether [lab color].

        Returns:
      • setLabColor

        public final void setLabColor(boolean value)

        Sets a value indicating whether [lab color].

        Parameters:
        value -
      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
        Returns:
        the layer resource key.
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
        Returns:
        the layer resource length in bytes.
      • getPsdVersion

        public int getPsdVersion()

        Gets the psd version.

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