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.
Version:
1.6.6
Author:
Joseph Verron
  • Constructor Details

    • Image

      public Image(InputStream in) throws IOException

      Constructor for Image.

      Parameters:
      in - - content of the image as InputStream
      Throws:
      IOException - if any.
    • Image

      public Image(InputStream in, Integer maxWidth) throws IOException

      Constructor for Image.

      Parameters:
      in - - content of the image as InputStream
      maxWidth - - max width of the image in twip
      Throws:
      IOException - if any.
    • Image

      public Image(byte[] imageBytes)

      Constructor for Image.

      Parameters:
      imageBytes - - content of the image as array of the bytes
    • Image

      public Image(byte[] imageBytes, Integer maxWidth)

      Constructor for Image.

      Parameters:
      imageBytes - - content of the image as array of the bytes
      maxWidth - - max width of the image in twip
  • Method Details

    • getMaxWidth

      public Integer getMaxWidth()

      Getter for the field maxWidth.

      Returns:
      a Integer object
    • getImageBytes

      public byte[] getImageBytes()

      Getter for the field imageBytes.

      Returns:
      an array of
      invalid reference
      byte
      objects