Hi,

I am new to this group. Currently i am trying to create Gif Animation File form 
Sequence of Jpeg Images Programatically (API - Magick++).

I have tried three possiblities, 
1. Gif Files to Gif Anim File         - output is ok.
2. Jpeg Files to Gif Anim File      - output is not ok. (output file has the 
last frame only)
3. Bmp Files to Gif Anim File      - output is not ok. (output file has the 
last frame only)

/////////////////////////////////////////code start//////////////////////
#include <windows.h> 
#include <wand/MagickWand.h> 
#include "animate.h" 

/*
char *flist[] = { "temp00.gif", "temp01.gif", "temp02.gif", NULL }; 
char *flist[] = { "temp00.bmp", "temp01.bmp", "temp02.bmp", NULL }; 
*/

char *flist[] = { "temp00.jpg", "temp01.jpg", "temp02.jpg", NULL }; 

MagickWand *mw,*rw ;

void main(void) 
{ 
   char **ptr; 
   
   MagickWandGenesis(); 
   mw = NewMagickWand(); 

   for(ptr = flist;*ptr;ptr++) { 
      rw = NewMagickWand(); 
      MagickReadImage(rw,*ptr); 
      MagickSetImageDelay(rw,10); 
      MagickAddImage(mw,rw); 
      DestroyMagickWand(rw); 
   } 
   MagickWriteImages(mw,"animate.gif",MagickTrue); 
   mw = DestroyMagickWand(mw); 
   MagickWandTerminus(); 
} 
///////////////////////code end/////////////////////////////
can anyone help me to sort out this problem.

Thanks in Advance.
Maddy
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to