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:
IAnimationTimeLineAfterAnimationTypeAnimationTimeLineITextAnimationITextAnimationCollection
Başlatmak için
Aspose.Slides FOSS için Python yükleme:
pip install aspose-slides-fossTemel 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
| Class | Description |
|---|---|
IAnimationTimeLine | Referans dokunuşları |
AfterAnimationType | Referans dokunuşları |
AnimationTimeLine | Referans dokunuşları |
ITextAnimation | Referans dokunuşları |
ITextAnimationCollection | Referans dokunuşları |
Ayrıntılar için bakın, API Referansları.