VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
GifFile NewFileGif = new GifFile(1980, 1020);
int delayImage = 100 / 30; // Time 1s / 30 image = Time delay a Image
int loopMovie = 10; // Loop Gif
for (int i = 0; i < loopMovie; i++) // loop 10
{
for (int a = 0; a < 30; a++) // Add 30 Image
{
VintasoftImage imgobj = new VintasoftImage(this.ListContens[0].ListPath[a].ToString());
NewFileGif.Pages.Add(imgobj);
NewFileGif.Pages[a].Delay = delayImage;
imgobj.Dispose();
}
}
NewFileGif.Save(this.ListContens[0].PathMovieOutput);
NewFileGif.Dispose();
GifFile NewFileGif = new GifFile(1980, 1020);
int delayImage = 100 / 30; // Time 1s / 30 image = Time delay a Image
for (int a = 0; a < 30; a++) // Add 30 Image
{
VintasoftImage imgobj = new VintasoftImage(this.ListContens[0].ListPath[a].ToString());
NewFileGif.Pages.Add(imgobj);
NewFileGif.Pages[a].Delay = delayImage;
imgobj.Dispose();
}
int loopMovie = 10; // Loop Gif
NewFileGif.NumberOfAnimationCycles = loopMovie;
NewFileGif.Save(this.ListContens[0].PathMovieOutput);
NewFileGif.Dispose();
Best regards, Alexander