java.lang.Object
org.wickedsource.docxstamper.replace.typeresolver.image.Image

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

    • Image

      public Image(InputStream in) throws IOException
      Parameters:
      in - - content of the image as InputStream
      Throws:
      IOException
    • Image

      public Image(InputStream in, Integer maxWidth) throws IOException
      Parameters:
      in - - content of the image as InputStream
      maxWidth - - max width of the image in twip
      Throws:
      IOException
    • 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 Details

    • getFilename

      public String getFilename()
    • setFilename

      public void setFilename(String filename)
    • getAltText

      public String getAltText()
    • setAltText

      public void setAltText(String altText)
    • getImageBytes

      public byte[] getImageBytes()
    • setImageBytes

      public void setImageBytes(byte[] imageBytes)
    • getMaxWidth

      public Integer getMaxWidth()
      Returns:
      max width of the image in twip, if it is specified, or null.