Packages

 

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

Class PtFlResource

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • PtFlResource

        public PtFlResource(String patternName,
                            String patternId)

        Initializes a new instance of the PtFlResource class.

        Parameters:
        patternName - Name of the pattern.
        patternId - The pattern identifier.
    • Method Detail

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

        public final String getPatternName()

        Gets the name of the pattern.

        Returns:
      • setPatternName

        public final void setPatternName(String value)

        Sets the name of the pattern.

        Parameters:
        value -
      • getOffset

        public final Point getOffset()

        Gets the offset.

        Returns:
      • setOffset

        public final void setOffset(Point value)

        Sets the offset.

        Parameters:
        value -
      • getScale

        public final double getScale()

        Gets the scale.

        Returns:
      • setScale

        public final void setScale(double value)

        Sets the scale.

        Parameters:
        value -
      • isLinkedWithLayer

        public final boolean isLinkedWithLayer()

        Gets a value indicating whether this instance is linked with layer.

      • setLinkedWithLayer

        public final void setLinkedWithLayer(boolean value)

        Sets a value indicating whether this instance is linked with layer.

        Parameters:
        value -
      • getAlignWithLayer

        public final boolean getAlignWithLayer()

        Gets a value indicating whether [align with layer].

        Returns:
      • setAlignWithLayer

        public final void setAlignWithLayer(boolean value)

        Sets a value indicating whether [align with layer].

        Parameters:
        value -
      • getPatternId

        public final String getPatternId()

        Gets the pattern identifier.

        Returns:
      • setPatternId

        public final void setPatternId(String value)

        Sets the pattern identifier.

        Parameters:
        value -
      • 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.
        Throws:
        com.aspose.ms.System.NotImplementedException