Class Image


  • public class Image
    extends Object
    This class describes an image which will be inserted into document.
    • Constructor Detail

      • Image

        public Image​(byte[] imageBytes)
        Parameters:
        imageBytes - - content of the image as array of the bytes
      • Image

        public Image​(byte[] imageBytes,
                     Integer maxWidth)
        Parameters:
        imageBytes - - content of the image as array of the bytes
        maxWidth - - max width of the image in twip
    • Method Detail

      • getFilename

        public String getFilename()
      • getAltText

        public String getAltText()
        Returns:
        the expected alternative text to display for user that can't see the image itself
      • getImageBytes

        public byte[] getImageBytes()
      • getMaxWidth

        public Integer getMaxWidth()
        The expected max width for this image
        Returns:
        max width in twip, or null.