Annotation Type ExcelImage
The Interface ExcelImage.
The ExcelImage is used to add image into cell, and it need to set the following properties.
The ExcelImage is used to add image into cell, and it need to set the following properties.
- PictureType - to define the picture type
- AnchorType - to define to anchor type
- ResizeHeight - to define the resize in height
- resize(1.0,1.0) - it keeps the original size.
- resize(0.5,0.5) it resizes to 50% of the original.
- resize(2.0,2.0) it resizes to 200% of the original.
- ResizeWidth - to define the resize in width
- resize(1.0,1.0) - it keeps the original size.
- resize(0.5,0.5) it resizes to 50% of the original.
- resize(2.0,2.0) it resizes to 200% of the original.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionorg.apache.poi.ss.usermodel.ClientAnchor.AnchorTypeAnchor type.org.apache.poi.sl.usermodel.PictureData.PictureTypePicture type.doubleResize height.doubleResize width.
-
Element Details
-
pictureType
org.apache.poi.sl.usermodel.PictureData.PictureType pictureTypePicture type.- Returns:
- the picture type
- Default:
JPEG
-
anchorType
org.apache.poi.ss.usermodel.ClientAnchor.AnchorType anchorTypeAnchor type.- Returns:
- the anchor type
- Default:
MOVE_AND_RESIZE
-
resizeHeight
double resizeHeightResize height.- Returns:
- the double
- Default:
1.0
-
resizeWidth
double resizeWidthResize width.- Returns:
- the double
- Default:
1.0
-