We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Tiled Image

Hi Mudassir,


We are using Aspose Slides for Java 2.4.0. We need to tile an Image with specifying the options like scale-x, scale-y, anchor etc. I have searched the Aspose Forums and Javadoc, there seems to be no API for that. Can you please specify where can I find it ?

Thanks,
Mani.
(Zoho Corp).

Hi Mani,

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: http://www.componenthouse.com/article-20

//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 );
shp.getFillFormat().getPictureFillFormat().getPicture().setImage( imgx);
shp.getFillFormat().getPictureFillFormat().setPictureFillMode(PictureFillModeEx.TILE);

pres.write(“K:\Apple\RectShpPic.pptx”);

Thanks and Regards,

Hi Mudassir,


We are using Aspose Slides for Java to generate a ppt file (2003 format).Please provide a solution for that. What we want is similar to the one available in the attached java file.

Thanks,
Mani.

Hi Mani,

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.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan