Packages

 

com.aspose.psd.fileformats.psd

Class ResourceBlock

    • Field Detail

      • ResouceBlockSignature

        public static final int ResouceBlockSignature

        The regular Photoshop resource signature.

        See Also:
        Constant Field Values
      • ResouceBlockMeSaSignature

        public static final int ResouceBlockMeSaSignature

        The resource signature of ImageReady.

        See Also:
        Constant Field Values
    • Constructor Detail

      • ResourceBlock

        public ResourceBlock()
    • Method Detail

      • getSignature

        public final int getSignature()

        Gets the resource signature. Should be always '8BIM'.

        Value: The resource signature.
      • getID

        public final short getID()

        Gets or sets the unique identifier for the resource.

        Value: The unique identifier for the resource.
      • setID

        public final void setID(short value)

        Gets or sets the unique identifier for the resource.

        Value: The unique identifier for the resource.
      • getName

        public final String getName()

        Gets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).

        Value: The resource name.
      • setName

        public final void setName(String value)

        Gets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).

        Value: The resource name.
      • getDataSize

        public abstract int getDataSize()

        Gets the resource data size in bytes.

        Value: The resource data size.
      • getSize

        public final int getSize()

        Gets the resource block size in bytes including its data.

        Value: The resource block size.
      • getMinimalVersion

        public abstract int getMinimalVersion()

        Gets the minimal required PSD version.

        Value: The minimal PSD version.
      • save

        public final void save(StreamContainer stream)

        Saves the resource block to the specified stream.

        Parameters:
        stream - The stream to save the resource block to.
      • validateValues

        public void validateValues()

        Validates the resource values.