Hey Community,
Im trying to take x pictures with the same size, lets assume 500x500
and put them together as a final image in a animated gif style.
I already managed the other way around, means to extract all frames from an
gif file to an array:
Image[] getFrames(Image originalImg)
{
int numberOfFrames = originalImg.GetFrameCount(FrameDimension.Time);
Image[] frames = new Image[numberOfFrames];
for (int i = 0; i < numberOfFrames; i++)
{
originalImg.SelectActiveFrame(FrameDimension.Time, i);
frames[i] = ((Image)originalImg.Clone());
}
return frames;
}
But there is no function within the Image class which is like "AddFrame(Image img)"
So how am I supposed to create such a thing ?
Some Pseudo Code for the idea behind:
void createFromFrames(string path, Image[] frames)
{
Image img;
... create it
foreach(Image f in frames)
{
img.AddFrame(f);
}
... save it
}
,greetings
What I have tried:
I searched in the web, searched in the classes but no result -