TimeInterval Klasse
Inhalt
[
Ausblenden
]Summary: Represents the time interval in milliseconds
Module: aspose.imaging.imageoptions
Full Name: aspose.imaging.imageoptions.TimeInterval
Constructors
| Name | Beschreibung |
|---|---|
| TimeInterval(from_address, to) | Initialisiert eine neue Instanz der TimeInterval Klasse. |
Properties
| Name | Type | Access | Beschreibung |
|---|---|---|---|
| from_address | int | r/w | Liest oder setzt From Millisekunden. |
| to | int | r/w | Liest oder setzt To Millisekunden. |
Constructor: TimeInterval(from_address, to)
TimeInterval(from_address, to)
Initialisiert eine neue Instanz der TimeInterval Klasse.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| from_address | int | From Millisekunden. |
| to | int | To Millisekunden. |
Examples
Export of part of animation from GIF image based on time interval.
from aspose.imaging import Image
from aspose.imaging.imageoptions import GifOptions, MultiPageOptions, MultiPageMode, TimeInterval
with Image.load("Animation.gif") as image:
obj_init = MultiPageOptions()
obj_init.mode = MultiPageMode.TIME_INTERVAL
obj_init.time_interval = TimeInterval(0, 400)
options = GifOptions()
options.full_frame = True
options.multi_page_options = obj_init
image.save("PartOfAnimation.gif", options)