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:
        the name of the pattern.
      • setPatternName

        public final void setPatternName(String value)

        Sets the name of the pattern.

        Parameters:
        value - the name of the pattern.
      • getOffset

        public final Point getOffset()

        Gets the offset.

        Returns:
        the offset.
      • setOffset

        public final void setOffset(Point value)

        Sets the offset.

        Parameters:
        value - the offset.
      • getScale

        public final double getScale()

        Gets the scale.

        Returns:
        the scale.
      • setScale

        public final void setScale(double value)

        Sets the scale.

        Parameters:
        value - the scale.
      • 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 - a value indicating whether this instance is linked with layer.
      • getAlignWithLayer

        public final boolean getAlignWithLayer()

        Gets a value indicating whether [align with layer].

        Returns:
        a value indicating whether [align with layer].
      • setAlignWithLayer

        public final void setAlignWithLayer(boolean value)

        Sets a value indicating whether [align with layer].

        Parameters:
        value - a value indicating whether [align with layer].
      • getPatternId

        public final String getPatternId()

        Gets the pattern identifier.

        Returns:
        the pattern identifier.
      • setPatternId

        public final void setPatternId(String value)

        Sets the pattern identifier.

        Parameters:
        value - the pattern identifier.
      • 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.