TimeInterval

TimeInterval class

Represents the time interval in milliseconds

public class TimeInterval

Constructors

NameDescription
TimeInterval(uint, uint)Initializes a new instance of the TimeInterval class.

Properties

NameDescription
From { get; set; }Gets or sets From milliseconds.
To { get; set; }Gets or sets To milliseconds.

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