How to Set the background image to center by using apache poi
For example: Slide size : 950 x 510 Image size : 500 x 4620 Here is my code XSLFPictureData idx = ppt.addPicture(file, pictureType); CTBackgroundProperties bgPr = this.slide.getXmlObject().getCSld().addNewBg().addNewBgPr(); CTBlipFillProperties blipPr = bgPr.addNewBlipFill(); CTBlip blib = blipPr.addNewBlip(); CTRelativeRect ctRelativeRect = blipPr.addNewStretch().addNewFillRect(); double…