Packages

 

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

Class PtFlResource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        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

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

        public final String getPatternName()

        Gets or sets the name of the pattern.

        Value: The name of the pattern.
      • setPatternName

        public final void setPatternName(String value)

        Gets or sets the name of the pattern.

        Value: The name of the pattern.
      • getOffset

        public final Point getOffset()

        Gets or sets the offset.

        Value: The offset.
      • setOffset

        public final void setOffset(Point value)

        Gets or sets the offset.

        Value: The offset.
      • getScale

        public final double getScale()

        Gets or sets the scale.

        Value: The scale.
      • setScale

        public final void setScale(double value)

        Gets or sets the scale.

        Value: The scale.
      • isLinkedWithLayer

        public final boolean isLinkedWithLayer()

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

        Value: true if this instance is linked with layer; otherwise, false.
      • setLinkedWithLayer

        public final void setLinkedWithLayer(boolean value)

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

        Value: true if this instance is linked with layer; otherwise, false.
      • getAlignWithLayer

        public final boolean getAlignWithLayer()

        Gets or sets a value indicating whether [align with layer].

        Value: true if [align with layer]; otherwise, false.
      • setAlignWithLayer

        public final void setAlignWithLayer(boolean value)

        Gets or sets a value indicating whether [align with layer].

        Value: true if [align with layer]; otherwise, false.
      • 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.
      • 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