What is the best way to adjoin images?
Posted: 2007-01-02T23:04:52-07:00
Hi,
I'm generating the following image using an STL list and the writeImages() method in order to create the animation.
I am generating each frame as I go.. then when I'm done generating, writeImages() iterates through the list again to write all of the frames to one image. Is there a way I can have a master Image that I can append images to it as I generate the frames?
I just don't like it that I have to reiterate through the list in order to write the image. I keep on searching for an append() method.. so I can simply do the following pseudo code:
masterImage.adjoin(true);
// a loop that generates each frame goes here
masterImage.append(/* image frame in here */); // I know this method doesn't exist.. just bear with me
// end of loop
masterImage.write("filename.gif");
I feel like because I have to iterate through the list in order to write the image that I'm gaining unwanted execution time.
Any ideas?
(I'm looking for a Magick++ solution not a command-line solution, thanks
I'm generating the following image using an STL list and the writeImages() method in order to create the animation.
I am generating each frame as I go.. then when I'm done generating, writeImages() iterates through the list again to write all of the frames to one image. Is there a way I can have a master Image that I can append images to it as I generate the frames?
I just don't like it that I have to reiterate through the list in order to write the image. I keep on searching for an append() method.. so I can simply do the following pseudo code:
masterImage.adjoin(true);
// a loop that generates each frame goes here
masterImage.append(/* image frame in here */); // I know this method doesn't exist.. just bear with me
// end of loop
masterImage.write("filename.gif");
I feel like because I have to iterate through the list in order to write the image that I'm gaining unwanted execution time.
Any ideas?
(I'm looking for a Magick++ solution not a command-line solution, thanks