Please use the code snippet given below to set the tiled the image inside the shape. Can you please exactly specify what exactly you require. The images of same size can be tiled in same slide. The requirement shared by you that you may scale-x or scale-y the tiled image are unavailable in Aspose.Slides. However, you may scale that using BufferedImage class. For reference, please visit this article:
//Instantiate PrseetationEx class that represents the PPTX
PresentationEx pres = new PresentationEx();
//Get the first slide
SlideEx sld = pres.getSlides().get(0);
//Add autoshape of rectangle type
int idx = sld.getShapes().addAutoShape(ShapeTypeEx.RECTANGLE , 50, 150, 75, 150);
ShapeEx shp = sld.getShapes().get(idx);
BufferedImage image = ImageIO.read(new File(“K:\Apple\Sunset.jpg”));
ImageEx imgx = pres.getImages().addImage(image);
shp.getFillFormat().setFillType (FillTypeEx.PICTURE );
Thanks and Regards,
I regret to share that the desired feature for setting tiled image in PPT shapes is not available in Aspose.Slides for Java. An issue with ID 29182 has been created in our issue tracking system to further investigate and resolve the issue. We will share the further information with you once the feature is available.
We are sorry for your inconvenience,
The issues you have found earlier (filed as SLIDESJAVA-29182) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.