Packages

 

com.aspose.imaging.fileformats.tiff.tifftagtypes

Class TiffShortType

    • Constructor Detail

      • TiffShortType

        public TiffShortType(int tagId)

        Initializes a new instance of the TiffShortType class.

        Parameters:
        tagId - The tag id.
    • Method Detail

      • getValues

        public int[] getValues()

        Gets or sets the data.

        Value: The data.
      • setValues

        public void setValues(int[] value)

        Gets or sets the data.

        Value: The data.
      • getElementSize

        public long getElementSize()

        Gets the element size in bytes.

        Value: The element size in bytes.
        Specified by:
        getElementSize in class TiffCommonArrayType
        Returns:
        The element size in bytes.
      • getValuesContainer

        public com.aspose.ms.System.Array getValuesContainer()

        Gets the values container.

        Value: The values container.
        Specified by:
        getValuesContainer in class TiffCommonArrayType
        Returns:
        The values container.
      • getTagType

        public int getTagType()

        Gets the tag type.

        Value: The tag type.
        Specified by:
        getTagType in class TiffDataType
        Returns:
        The tag type.
      • getValue

        public Object getValue()

        Gets or sets the value this data type contains.

        Specified by:
        getValue in class TiffDataType
        Returns:
        The value.
        Throws:
        com.aspose.ms.System.ArgumentException - Only ushort array is supported. Value: The value.
      • setValue

        public void setValue(Object value)

        Gets or sets the value this data type contains.

        Specified by:
        setValue in class TiffDataType
        Parameters:
        value - The value.
        Throws:
        com.aspose.ms.System.ArgumentException - Only ushort array is supported. Value: The value.
      • writeAdditionalData

        public long writeAdditionalData(TiffStreamWriter dataStream)

        Writes the additional tag data.

        Specified by:
        writeAdditionalData in class TiffDataType
        Parameters:
        dataStream - The data stream.
        Returns:
        The actual bytes written.