Free Support Forum - aspose.com

How do I add a can and moon to a slide

I want to add an autoshape whose types are a can and a moon into one of slides, but I am not sure can I write this code.

Hi,

For PPT, you can find complete code examples with details in this article. For PPTX, the code example is as under:

PresentationEx pres = new PresentationEx();

SlideEx sld= pres.Slides[0];

sld.Shapes.AddAutoShape(ShapeTypeEx.Moon,100,100,250,250);

pres.Write("autoShapeExample.pptx");

thanks,
but I don’t find this in java components

Hi,

For Aspose.Slides for Java version, please visit here.