Class TimeInterval
Class TimeInterval
Navne til: Aspose.Imaging.ImageOptions Sammensætning: Aspose.Imaging.dll (25.4.0)
Representerer tidsintervallet i millisekunder
public class TimeInterval
Inheritance
De arvede medlemmer
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
Eksport af en del af animationen fra GIF-billedet baseret på tidsintervallet.
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(Unt, Unt)
Initialiserer en ny instans af Aspose.Imaging.ImageOptions.TimeInterval klasse.
public TimeInterval(uint from, uint to)
Parameters
from
uint
fra millisekunder.
to
uint
I millisekunder.
Properties
From
Få eller sæt fra millisekunder.
public uint From { get; set; }
Ejendomsværdi
To
Gets eller sæt til millisekunder.
public uint To { get; set; }