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:

参数TypeDescription
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)