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'.

        Value: The resource signature.
      • getID

        public short getID()

        Gets or sets the unique identifier for the resource.

        Value: The unique identifier for the resource.
      • setID

        public void setID(short value)

        Gets or sets the unique identifier for the resource.

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

        Value: 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).

        Value: The resource name.
      • getDataSize

        public abstract int getDataSize()

        Gets the resource data size in bytes.

        Value: The resource data size.
      • getSize

        public 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.
      • setState_internalized

        public void setState_internalized(int value)

        Gets or sets the resource block state.

        Value: The resource block state.
      • save

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