Class ImageResourceBlock

  • All Implemented Interfaces:

    public final class ImageResourceBlock
    extends Object
    implements IMetadataProperty

    Represents Photoshop Image Resource block. <br></br> Image resource blocks are the basic building unit of several file formats, including Photoshop's native file format, JPEG, and TIFF. Image resources are used to store non-pixel data associated with images, such as pen tool paths.

    • Method Detail

      • getId

        public final long getId()

        Gets the unique identifier for the resource.

        Value: The identifier.
      • getDefinedId

        public final int getDefinedId()

        Gets the defined identifier.

        Value: The defined identifier.
      • setName

        public final void setName(String value)

        Gets or sets property name.

        Value: Property name.
        Specified by:
        setName in interface IMetadataProperty
      • getPropertyName

        public final String getPropertyName()

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

        Value: Property name.
      • getDataSize

        public final int getDataSize()

        Gets the size of the data.

        Value: Data size.
      • getData

        public final byte[] getData()

        Gets the resource data. It is padded to make the size even.

        Value: The data.
      • getFormattedValue

        public final String getFormattedValue()

        Gets the formatted value.

        Specified by:
        getFormattedValue in interface IMetadataProperty
        String value contained metadata property value in readable format.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        toString in class Object
        A System.String that represents this instance.