Page 1 of 1

Re: Determine if .gif is animated from c++ api

Posted: 2009-03-30T11:05:44-07:00
by magick
Use STL. The image list begin() / end() tells you the length of the animation. If its 1 its not an animation:
  • #include <list>
    ...
    list<Image> imageList;
    readImages( &imageList, "test_image_anim.gif" );
    ...
    cout << imageList.begin() << endl;
    cout << imageList.end() << endl;