Skip to content

Conversation

muhammadumargroupdocs
Copy link
Member

Enhancements

  • 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.

New Feature

  • Added new Bounce animation for dynamic visual effects.

Code Example

// 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();

@muhammadumargroupdocs muhammadumargroupdocs merged commit ad1df93 into main May 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant