Class Image
java.lang.Object
org.wickedsource.docxstamper.replace.typeresolver.image.Image
This class describes an image which will be inserted into document.
-
Constructor Summary
ConstructorsConstructorDescriptionImage(byte[] imageBytes) Image(InputStream in) Image(InputStream in, Integer maxWidth) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]voidsetAltText(String altText) voidsetFilename(String filename) voidsetImageBytes(byte[] imageBytes)
-
Constructor Details
-
Image
- Parameters:
in- - content of the image as InputStream- Throws:
IOException
-
Image
- Parameters:
in- - content of the image as InputStreammaxWidth- - 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
- Parameters:
imageBytes- - content of the image as array of the bytesmaxWidth- - max width of the image in twip
-
-
Method Details
-
getFilename
-
setFilename
-
getAltText
-
setAltText
-
getImageBytes
public byte[] getImageBytes() -
setImageBytes
public void setImageBytes(byte[] imageBytes) -
getMaxWidth
- Returns:
- max width of the image in twip, if it is specified, or null.
-