1
// This may look like C code, but it is really -*- C++ -*-
3
// Copyright Bob Friesenhahn, 1999, 2000, 2003
5
// Test STL coalesceImages function
16
using namespace Magick;
18
int main( int /*argc*/, char ** argv)
21
// Initialize ImageMagick install location for Windows
22
InitializeMagick(*argv);
29
if(getenv("SRCDIR") != 0)
30
srcdir = getenv("SRCDIR");
33
// Test coalesceImages
36
list<Image> imageList;
37
readImages( &imageList, srcdir + "test_image_anim.miff" );
39
list<Image> coalescedList;
40
coalesceImages( &coalescedList, imageList.begin(), imageList.end() );
43
catch( Exception &error_ )
45
cout << "Caught exception: " << error_.what() << endl;
48
catch( exception &error_ )
50
cout << "Caught exception: " << error_.what() << endl;
56
cout << failures << " failures" << endl;