Class TimeInterval
Class TimeInterval
Nazwa przestrzeń: Aspose.Imaging.ImageOptions Zgromadzenie: Aspose.Imaging.dll (25.4.0)
Przedstawia okres czasu w milisekundach
public class TimeInterval
Inheritance
Dziedziczeni członkowie
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Eksportowanie części animacji z obrazu GIF w oparciu o okres czasu.
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(węgiel, węgiel)
Inicjalizuje nową instancję klasy Aspose.Imaging.ImageOptions.TimeInterval.
public TimeInterval(uint from, uint to)
Parameters
from
uint
od milisekund.
to
uint
Na milisekundę.
Properties
From
Dostępne lub ustawione od milisekund.
public uint From { get; set; }
Wartość nieruchomości
To
Dostępne lub ustawione do milisekund.
public uint To { get; set; }