Packages

 

com.aspose.cad.fileformats.psd

Class ResourceBlock

    • Field Detail

      • RESOUCE_BLOCK_SIGNATURE

        public static final int RESOUCE_BLOCK_SIGNATURE

        The resource signature.

        See Also:
        Constant Field Values
    • Constructor Detail

      • ResourceBlock

        public ResourceBlock()
    • Method Detail

      • getSignature

        public int getSignature()

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

        Returns:
        The resource signature.
      • getID

        public short getID()

        Gets or sets the unique identifier for the resource.

        Returns:
        The unique identifier for the resource.
      • setID

        public void setID(short value)

        Gets or sets the unique identifier for the resource.

        Parameters:
        value - The unique identifier for the resource.
      • getName

        public 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).

        Returns:
        The resource name.
      • setName

        public 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).

        Parameters:
        value - The resource name.
      • getDataSize

        public abstract int getDataSize()

        Gets the resource data size in bytes.

        Returns:
        The resource data size.
      • getSize

        public int getSize()

        Gets the resource block size in bytes including its data.

        Returns:
        The resource block size.
      • getMinimalVersion

        public abstract int getMinimalVersion()

        Gets the minimal required PSD version.

        Returns:
        The minimal PSD version.
      • save

        public void save(com.aspose.cad.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.