Packages

 

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

Class LayerSectionResource



  • public class LayerSectionResource
    extends LayerResource

    The layer section resource.

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • LayerSectionResource

        public LayerSectionResource()

        Initializes a new instance of the LayerSectionResource class.

    • Method Detail

      • getBlendModeKey

        public final long getBlendModeKey()

        Gets or sets the blend mode key.

        Throws:
        PsdImageArgumentException - BlendModeKey must be 4 characters in length.
      • setBlendModeKey

        public final void setBlendModeKey(long value)

        Gets or sets the blend mode key.

        Throws:
        PsdImageArgumentException - BlendModeKey must be 4 characters in length.
      • 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
      • getSectionType

        public final int getSectionType()

        Gets or sets the section type.

      • setSectionType

        public final void setSectionType(int value)

        Gets or sets the section type.

      • getSignature

        public int getSignature()

        Gets the layer resource signature.

        Specified by:
        getSignature in class LayerResource
      • getSubtype

        public final int getSubtype()

        Gets or sets the subtype.

      • setSubtype

        public final void setSubtype(int value)

        Gets or sets the subtype.

      • 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.