v25.5.2
·
18 commits
to main
since this release
What's Changed
- Refactored animation methods into separate classes for better code organization.
- Introduced IAnimation interface for consistent animation generation logic.
- Improved maintainability and scalability of animation system.
- Prepared foundation for future animation customization and testing.
- Added new Bounce animation for dynamic visual effects.
Full Changelog: v25.5.1...v25.5.2
Add bounce animation to a rectangle shape
// Open an existing presentation from the specified file path
Openize.Slides.Presentation presentation = Openize.Slides.Presentation.Open("file.pptx");
// Create a new slide to add shapes and animations
Openize.Slides.Slide slide = new Openize.Slides.Slide();
// Create a new rectangle shape
Openize.Slides.Rectangle rectangle = new Openize.Slides.Rectangle();
// Set the animation type to Bounce
rectangle.Animation = Openize.Slides.Common.Enumerations.AnimationType.Bounce;
// Set rectangle dimensions and position
rectangle.Width = 300.0;
rectangle.Height = 300.0;
rectangle.X = 300.0;
rectangle.Y = 300.0;
// Draw the rectangle on the slide
slide.DrawRectangle(rectangle);
// Add the slide with the animated rectangle to the presentation
presentation.AppendSlide(slide);
// Save the updated presentation to disk (overwrites the existing file or saves to default location)
presentation.Save();