TimeInterval Class
Represents the time interval in milliseconds
Inheritance Hierarchy
SystemObject
  Aspose.Imaging.ImageOptionsTimeInterval

Namespace: Aspose.Imaging.ImageOptions
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 21.04
Syntax
public class TimeInterval

The TimeInterval type exposes the following members.

Constructors
  NameDescription
Public methodTimeInterval
Initializes a new instance of the TimeInterval class.
Properties
  NameDescription
Public propertyFrom
Gets or sets From milliseconds.
Public propertyTo
Gets or sets To milliseconds.
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Examples
Export of part of animation from GIF image based on time interval.
[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);
}
See Also