java.lang.Object
pro.verron.officestamper.preset.Image
This class describes an image which will be inserted into a document.
- Since:
- 1.0.0
- Version:
- ${version}
- Author:
- Joseph Verron, Romster
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]TODO_LATER: make private asapprotected IntegerTODO_LATER: make private asap -
Constructor Summary
ConstructorsConstructorDescriptionImage(byte[] imageBytes) Constructor for Image.Constructor for Image.Image(InputStream in) Constructor for Image.Image(InputStream in, Integer maxWidth) Constructor for Image. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Getter for the fieldimageBytes.Getter for the fieldmaxWidth.
-
Field Details
-
imageBytes
protected final byte[] imageBytesTODO_LATER: make private asap -
maxWidth
TODO_LATER: make private asap
-
-
Constructor Details
-
Image
Constructor for Image.
- Parameters:
in- - content of the image as InputStream- Throws:
IOException- if any.
-
Image
Constructor for Image.
- Parameters:
in- - content of the image as InputStreammaxWidth- - 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 an array of the bytes
-
Image
Constructor for Image.
- Parameters:
imageBytes- - content of the image as an array of the bytesmaxWidth- - max width of the image in twip
-
-
Method Details
-
getMaxWidth
Getter for the field
maxWidth.- Returns:
- a
Integerobject
-
getImageBytes
public byte[] getImageBytes()Getter for the field
imageBytes.- Returns:
- an array of
objects
invalid reference
byte
-