Annotation Type ExcelImage


@Documented @Retention(RUNTIME) @Target(FIELD) public @interface ExcelImage
The Interface ExcelImage.
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 Elements
    Modifier and Type
    Optional Element
    Description
    org.apache.poi.ss.usermodel.ClientAnchor.AnchorType
    Anchor type.
    org.apache.poi.sl.usermodel.PictureData.PictureType
    Picture type.
    double
    Resize height.
    double
    Resize width.
  • Element Details

    • pictureType

      org.apache.poi.sl.usermodel.PictureData.PictureType pictureType
      Picture type.
      Returns:
      the picture type
      Default:
      JPEG
    • anchorType

      org.apache.poi.ss.usermodel.ClientAnchor.AnchorType anchorType
      Anchor type.
      Returns:
      the anchor type
      Default:
      MOVE_AND_RESIZE
    • resizeHeight

      double resizeHeight
      Resize height.
      Returns:
      the double
      Default:
      1.0
    • resizeWidth

      double resizeWidth
      Resize width.
      Returns:
      the double
      Default:
      1.0