类 TimeInterval
TimeInterval class
表示以毫秒为单位的时间间隔
public class TimeInterval
构造函数
| 名称 | 描述 |
|---|---|
| TimeInterval(uint, uint) | 初始化 TimeInterval 类的新实例。 |
属性
| 名称 | 描述 |
|---|---|
| From { get; set; } | 获取或设置起始毫秒数。 |
| To { get; set; } | 获取或设置结束毫秒数。 |
示例
基于时间间隔导出 GIF 图像的部分动画。
[C#]
using (var image = Image.Load("Animation.gif"))
{
var options = new GifOptions
{
FullFrame = true,
MultiPageOptions = new MultiPageOptions
{
Mode = MultiPageMode.TimeInterval,
TimeInterval = new TimeInterval(0, 400)
}
};
image.Save("PartOfAnimation.gif", options);
}
另请参见
- namespace Aspose.Imaging.ImageOptions
- assembly Aspose.Imaging