Interface PictureData


  • public interface PictureData
    • Method Detail

      • getContentType

        String getContentType()
        Returns content type (mime type) of this picture.
        Returns:
        content type of this picture.
      • getData

        byte[] getData()
        Returns the binary data of this Picture
        Returns:
        picture data
      • setData

        void setData​(byte[] data)
              throws IOException
        Sets the binary picture data

        The format of the data must match the format of getType(). Failure to match the picture data may result in data loss.

        Parameters:
        data - picture data
        Throws:
        IOException
      • getChecksum

        byte[] getChecksum()
        Gets the checksum - the checksum can be of various length - mostly it's 8 (XSLF) or 16 (HSLF) bytes long.
        Returns:
        the checksum
      • getImageDimension

        Dimension getImageDimension()
        Return the original image dimensions in points (for formats supported by BufferedImage). Will return a Dimension with a default width of 200x200 if the format unsupported.
      • getImageDimensionInPixels

        Dimension getImageDimensionInPixels()
        Return the original image dimensions in pixels
        See Also:
        getImageDimension()