Animasyon ile Çalışma - Aspose.Slides FOSS için Python

Aspose.Slides FOSS for Python provides classes for working with working with animation.


Overview

İlgili önemli sınıflar şunlardır:

  • IAnimationTimeLine
  • AfterAnimationType
  • AnimationTimeLine
  • ITextAnimation
  • ITextAnimationCollection

Başlatmak için

Aspose.Slides FOSS için Python yükleme:

pip install aspose-slides-foss

Temel Kullanım

import aspose.slides_foss as slides
from aspose.slides_foss import ShapeType
from aspose.slides_foss import animation as anim
from aspose.slides_foss.export import SaveFormat

with slides.Presentation() as prs:
    slide = prs.slides[0]
    shape = slide.shapes.add_auto_shape(ShapeType.RECTANGLE, 10, 10, 100, 50)
    effect = slide.timeline.main_sequence.add_effect(
        shape, anim.EffectType.FADE,
        anim.EffectSubtype.NONE,
        anim.EffectTriggerType.ON_CLICK,
    )
    prs.save("animated.pptx", SaveFormat.PPTX)

İpuçları ve En İyi Uygulamalar

  • Kullanımdan sonra her zaman belge nesneleri çıkarın.
  • Dosya I/O istisnaları okurken veya yazarken işlemek
  • kontrol et API Referansları Son imza için

API Referans Özetleri

ClassDescription
IAnimationTimeLineReferans dokunuşları
AfterAnimationTypeReferans dokunuşları
AnimationTimeLineReferans dokunuşları
ITextAnimationReferans dokunuşları
ITextAnimationCollectionReferans dokunuşları

Ayrıntılar için bakın, API Referansları.

See Also

 Türkçe