Class SoCoResource

  • public class SoCoResource
    extends FillLayerResource

    Class SoCoResource. This resource contains information about Color Fill Layers

    See Also:
    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        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 .

        The RGB Color
      • setColor

        public final void setColor(Color value)

        Gets the RGB color .

        value - The RGB Color
      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
      • getPsdVersion

        public int getPsdVersion()

        Gets the minimal psd version required for layer resource. 0 indicates no restrictions.

        Specified by:
        getPsdVersion in class LayerResource
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource to the specified stream container.

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