Packages

 

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

Class PattResource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • PattResource

        public PattResource()

        Initializes a new instance of the PattResource class.

      • PattResource

        public PattResource(byte[] bytes)

        Initializes a new instance of the PattResource class.

        Parameters:
        bytes - The bytes.
    • Method Detail

      • getPatternData

        public final int[] getPatternData()

        Gets the pattern data.

        Value: The pattern data.
      • getPatternId

        public final String getPatternId()

        Gets or sets the pattern identifier.

        Value: The pattern identifier.
      • setPatternId

        public final void setPatternId(String value)

        Gets or sets the pattern identifier.

        Value: The pattern identifier.
      • getName

        public final String getName()

        Gets or sets the name.

        Value: The name.
      • setName

        public final void setName(String value)

        Gets or sets the name.

        Value: The name.
      • getHeight

        public final short getHeight()

        Gets the height.

        Value: The height.
      • setHeight

        public void setHeight(short value)

        Gets the height.

        Value: The height.
      • getWidth

        public final short getWidth()

        Gets the width.

        Value: The width.
      • setWidth

        public void setWidth(short value)

        Gets the width.

        Value: The width.
      • getImageMode

        public final short getImageMode()

        Gets the image mode.

        Value: The image mode.
      • setImageMode

        public void setImageMode(short value)

        Gets the image mode.

        Value: The image mode.
      • getVersion

        public final int getVersion()

        Gets the version.

        Value: The version.
      • setVersion

        public void setVersion(int value)

        Gets the version.

        Value: The version.
      • getPatternLength

        public final int getPatternLength()

        Gets the length of the pattern.

        Value: The length of the pattern.
      • setPatternLength

        public void setPatternLength(int value)

        Gets the length of the pattern.

        Value: The length of the pattern.
      • getSignature

        public int getSignature()

        Gets the layer resource signature.

        Specified by:
        getSignature in class LayerResource
      • 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
      • setPattern

        public final void setPattern(int[] pixels,
                                     Rectangle bounds)

        Sets the pattern.

        Parameters:
        pixels - The pixels.
        bounds - The bounds.
        Throws:
        PsdImageArgumentException - Pixels array length must be equal to bounds area
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource block data.

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