فئة TimeInterval

Summary: Represents the time interval in milliseconds

Module: aspose.imaging.imageoptions

Full Name: aspose.imaging.imageoptions.TimeInterval

Constructors

Nameالوصف
TimeInterval(from_address, to)ينشئ مثلاً جديداً من الفئة TimeInterval.

Properties

NameTypeAccessالوصف
from_addressintr/wيحصل أو يعيّن From بالمللي ثانية.
tointr/wيحصل أو يعيّن To بالمللي ثانية.

Constructor: TimeInterval(from_address, to)

 TimeInterval(from_address, to) 

ينشئ مثلاً جديداً من الفئة TimeInterval.

Parameters:

معاملنوعالوصف
from_addressintFrom بالمللي ثانية.
tointTo بالمللي ثانية.

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)