Packages

 

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

Class LclrResource



  • public class LclrResource
    extends LayerResource

    Class LclrResource. This resource contains information about color of layer in layers' list is PS. It's only

    See Also:
    LayerResource
    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • LclrResource

        public LclrResource()

        Initializes a new instance of the LclrResource class.

      • LclrResource

        public LclrResource(short color)

        Initializes a new instance of the LclrResource class.

        Parameters:
        color - The color.
      • LclrResource

        public LclrResource(byte[] data)

        Initializes a new instance of the LclrResource class.

        Parameters:
        data - The resource data.
        Throws:
        PsdImageArgumentException - Invalid Lclr Resource value
    • Method Detail

      • getColor

        public final short getColor()

        Gets the color of layer.

        Returns:
        the color of layer.
        See Also:
        SheetColorHighlightEnum
      • setColor

        public final void setColor(short value)

        Sets the color of layer.

        Parameters:
        value - the color of layer.
        See Also:
        SheetColorHighlightEnum
      • getSignature

        public int getSignature()

        Gets the signature.

        Specified by:
        getSignature in class LayerResource
        Returns:
        the signature.
      • 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.
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource to the specified stream container.

        Specified by:
        save in class LayerResource
        Parameters:
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.