Class TimeInterval
Class TimeInterval
Namespace: Aspose.Imaging.ImageOptions
Assembly: Aspose.Imaging.dll (25.4.0)
Represents the time interval in milliseconds
public class TimeInterval
Inheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Export of part of animation from GIF image based on time interval.
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);
}
Constructors
TimeInterval(uint, uint)
Initializes a new instance of the Aspose.Imaging.ImageOptions.TimeInterval class.
public TimeInterval(uint from, uint to)
Parameters
from
uint
From milliseconds.
to
uint
To milliseconds.
Properties
From
Gets or sets From milliseconds.
public uint From { get; set; }
Property Value
To
Gets or sets To milliseconds.
public uint To { get; set; }