Could someone pls tell me what I'm doing wrong?
Code: Select all
MagickWandGenesis();
MagickWand *wand = NewMagickWand();
MagickSetFormat(wand, "gif");
// create img1, 2, 3
MagickSetImageDelay(img1, 10);
MagickAddImage(wand, img1);
DestroyMagickWand(img1);
MagickSetImageDelay(img2, 10);
MagickAddImage(wand, img2);
DestroyMagickWand(img2);
MagickSetImageDelay(img3, 10);
MagickAddImage(wand, img3);
DestroyMagickWand(img3);
MagickSetOption(wand, "loop", "1");
//MagickSetImageIterations(wand, 1); // also tried this with no luck
//Edit: also tried MagickSetImageProperty(wand, "loop", "1");
// save/preview gif...
MagickWandTerminus();
Thanks!