Class TimeInterval

Class TimeInterval

Namespace: Aspose.Imaging.ImageOptions
Assembly: Aspose.Imaging.dll (25.2.0)

Represents the time interval in milliseconds

public class TimeInterval

Inheritance

objectTimeInterval

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.```csharp [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);
                                                                         }

## Constructors

### <a id="Aspose_Imaging_ImageOptions_TimeInterval__ctor_System_UInt32_System_UInt32_"></a> TimeInterval\(uint, uint\)

Initializes a new instance of the Aspose.Imaging.ImageOptions.TimeInterval class.

```csharp
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

uint

To

Gets or sets To milliseconds.

public uint To { get; set; }

Property Value

uint