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

Free Support Forum - aspose.com

Slides Shapes add Ellipse edidt fill color and animation path

Hi out there - help needed!

How to edidt fill color and animation path. The result should look like the attachment:

Hi Gunnar,

Thanks for your interest in Aspose.Slides.

Please use the code snippet given below for creating filled ellipse and applying animation on that. There are predefined animations effects that can be applied on shapes. Please visit link 1 and link 2 for your kind reference as well.

//Instantiate a Presentation object that represents a PPT file

Presentation pres = new Presentation();

//Accessing a slide using its slide position

Slide slide = pres.AddEmptySlide ();

//Adding an ellipse shape into the slide by defining its X,Y postion, width

//and height

Shape shape = slide.Shapes.AddEllipse(3300, 2200, 500, 200);

//Setting the fill type of the ellipse to gradient

shape.FillFormat.Type = FillType.Solid ;

//Setting the foreground color of the ellipse to blue

shape.FillFormat.ForeColor = Color.Blue;

//Setting the foreground color of the ellipse lines

shape.LineFormat.ForeColor = Color.Black;

shape.LineFormat.Width = 2.0;

//Applying an animation effect on the rectangle shape

// shape.AnimationSettings.EntryEffect = ShapeEntryEffect.Spiral;

shape.AnimationSettings.EntryEffect = ShapeEntryEffect.Spiral;

//Writing the presentation as a PPT file

pres.Write(“D:\Aspose Data\Ellipse.ppt”);

Many Thanks,