Class XWPFPicture


  • public class XWPFPicture
    extends java.lang.Object
    Author:
    Philipp Epp
    • Constructor Summary

      Constructors 
      Constructor Description
      XWPFPicture​(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture ctPic, XWPFRun run)  
    • Constructor Detail

      • XWPFPicture

        public XWPFPicture​(org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture ctPic,
                           XWPFRun run)
    • Method Detail

      • setPictureReference

        public void setPictureReference​(PackageRelationship rel)
        Link Picture with PictureData
        Parameters:
        rel -
      • getCTPicture

        public org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture getCTPicture()
        Return the underlying CTPicture bean that holds all properties for this picture
        Returns:
        the underlying CTPicture bean
      • getPictureData

        public XWPFPictureData getPictureData()
        Get the PictureData of the Picture, if present. Note - not all kinds of picture have data
      • getDescription

        public java.lang.String getDescription()