com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IEffect

  • All Known Implementing Classes:
    Effect


    public interface IEffect

    Represents animation effect.

    • Method Detail

      • getSequence

        ISequence getSequence()

        Returns a sequence for an effect. Read-only ISequence.

      • getPresetClassType

        int getPresetClassType()

        Defines class of effect. Read/write EffectPresetClassType.

      • setPresetClassType

        void setPresetClassType(int value)

        Defines class of effect. Read/write EffectPresetClassType.

      • getType

        int getType()

        Defines type of effect. Read/write EffectType.

      • setType

        void setType(int value)

        Defines type of effect. Read/write EffectType.

      • getSubtype

        int getSubtype()

        Defines subtype of effect. Read/write EffectSubtype.

      • setSubtype

        void setSubtype(int value)

        Defines subtype of effect. Read/write EffectSubtype.

      • getTiming

        ITiming getTiming()

        Defines timing value for effect. Read/write ITiming.

      • setTiming

        void setTiming(ITiming value)

        Defines timing value for effect. Read/write ITiming.

      • getTargetShape

        IShape getTargetShape()

        Returns target shape for effect. Read-only IShape.

      • getSound

        IAudio getSound()

        Defined embedded sound for effect. Read/write IAudio.


         
         Presentation presentation = new Presentation("demo.pptx");
         try {
             ISlide slide = presentation.getSlides().get_Item(0);
        
             // Gets the effects sequence for the slide
             ISequence effectsSequence = slide.getTimeline().getMainSequence();
        
             for (IEffect effect : effectsSequence)
             {
                 if (effect.getSound() == null)
                     continue;
        
                 // Extracts the effect sound in byte array
                 byte[] audio = effect.getSound().getBinaryData();
             }
         } finally {
             if (presentation != null) presentation.dispose();
         }
         
      • setSound

        void setSound(IAudio value)

        Defined embedded sound for effect. Read/write IAudio.


         
         Presentation presentation = new Presentation("demo.pptx");
         try {
             ISlide slide = presentation.getSlides().get_Item(0);
        
             // Gets the effects sequence for the slide
             ISequence effectsSequence = slide.getTimeline().getMainSequence();
        
             for (IEffect effect : effectsSequence)
             {
                 if (effect.getSound() == null)
                     continue;
        
                 // Extracts the effect sound in byte array
                 byte[] audio = effect.getSound().getBinaryData();
             }
         } finally {
             if (presentation != null) presentation.dispose();
         }