Class XSLFPictureShape

All Implemented Interfaces:
IAdjustableShape, PictureShape<XSLFShape,XSLFTextParagraph>, PlaceableShape<XSLFShape,XSLFTextParagraph>, Shape<XSLFShape,XSLFTextParagraph>, SimpleShape<XSLFShape,XSLFTextParagraph>

@Beta public class XSLFPictureShape extends XSLFSimpleShape implements PictureShape<XSLFShape,XSLFTextParagraph>
Represents a picture shape
  • Method Details

    • isExternalLinkedPicture

      public boolean isExternalLinkedPicture()
      Is this an internal picture (image data included within the PowerPoint file), or an external linked picture (image lives outside)?
    • getPictureData

      public XSLFPictureData getPictureData()
      Return the data on the (internal) picture. For an external linked picture, will return null
      Specified by:
      getPictureData in interface PictureShape<XSLFShape,XSLFTextParagraph>
      Returns:
      the picture data for this picture.
    • setPlaceholder

      public void setPlaceholder(Placeholder placeholder)
      Description copied from interface: SimpleShape
      Specifies that the corresponding shape should be represented by the generating application as a placeholder. When a shape is considered a placeholder by the generating application it can have special properties to alert the user that they may enter content into the shape.
      Specified by:
      setPlaceholder in interface SimpleShape<XSLFShape,XSLFTextParagraph>
      Overrides:
      setPlaceholder in class XSLFShape
      Parameters:
      placeholder - the placeholder or null to remove the reference to the placeholder
      See Also:
    • getPictureLink

      public URI getPictureLink()
      For an external linked picture, return the last-seen path to the picture. For an internal picture, returns null.
    • getBlipFill

      protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties getBlipFill()
    • getBlip

      protected org.openxmlformats.schemas.drawingml.x2006.main.CTBlip getBlip()
    • getBlipLink

      protected String getBlipLink()
    • getBlipId

      protected String getBlipId()
    • getClipping

      public Insets getClipping()
      Description copied from interface: PictureShape
      Returns the clipping values as percent ratio relatively to the image size. The clipping are returned as insets converted/scaled to 100000 (=100%).
      Specified by:
      getClipping in interface PictureShape<XSLFShape,XSLFTextParagraph>
      Returns:
      the clipping rectangle, which is given in percent in relation to the image width/height