Packages

 

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

Class SoCoResource



  • public class SoCoResource
    extends FillLayerResource

    Class SoCoResource. This resource contains information about Color Fill Layers

    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

      • SoCoResource

        public SoCoResource()

        Initializes a new instance of the SoCoResource class.

    • Method Detail

      • getColor

        public final Color getColor()

        Gets the RGB color .

        Returns:
        The RGB Color
      • setColor

        public final void setColor(Color value)

        The RGB color .

        Parameters:
        value - the RGB color .
      • getSignature

        public int getSignature()

        Gets the layer resource signature.

        Overrides:
        getSignature in class FillLayerResource
        Returns:
        the layer resource 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 minimal psd version required for layer resource. 0 indicates no restrictions.

        Specified by:
        getPsdVersion in class LayerResource
        Returns:
        the minimal psd version required for layer resource.
      • 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.