Class TimeInterval
Class TimeInterval
Le nom : Aspose.Imaging.ImageOptions Assemblée: Aspose.Imaging.dll (25.4.0)
Représente l’intervalle de temps en milliseconds
public class TimeInterval
Inheritance
I membri ereditari
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Exporter une partie de l’animation à partir d’une image GIF basée sur un intervalle de temps.
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(Trouver, Trouver)
Initialisez une nouvelle instance de la classe Aspose.Imaging.ImageOptions.TimeInterval.
public TimeInterval(uint from, uint to)
Parameters
from
uint
à des milliseconds.
to
uint
à des milliseconds.
Properties
From
Gets ou sets à partir de milliseconds.
public uint From { get; set; }
Valore di proprietà
To
Obtenez ou mettez à des milliseconds.
public uint To { get; set; }