Changeset 7119


Ignore:
Timestamp:
03/15/12 09:24:43 (14 months ago)
Author:
anthony
Message:
 
Location:
ImageMagick/trunk/MagickWand
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/MagickWand/magick-image.c

    r7106 r7119  
    403403  Image *images) 
    404404{ 
    405   /* if no images in wand, just add them, set wand->images as appropriate */ 
     405  /* if no images in wand, just add them, set current as appropriate */ 
    406406  if (wand->images == (Image *) NULL) 
    407407    { 
     
    421421      return(MagickTrue); 
    422422    } 
    423   /* Note you should never have 'insert_before' true when wand->images image 
     423  /* Note you should never have 'insert_before' true when current image 
    424424     is not the first image in the wand!  That is no insert before 
    425      wand->images image, only after current image */ 
     425     current image, only after current image */ 
    426426 
    427427  /* if at last image append new images */ 
     
    432432      return(MagickTrue); 
    433433    } 
    434   /* otherwise insert new images, just after the wand->images image */ 
     434  /* otherwise insert new images, just after the current image */ 
    435435  InsertImageInList(&wand->images,images); 
    436436  return(MagickTrue); 
     
    68356835%  MagickNextImage() sets the next image in the wand as the current image. 
    68366836%  It returns MagickTrue if their is another image to be processed. 
    6837 %   
     6837% 
    68386838%  Returns MagickFalse when current image is already the last image 
    68396839%  in the wand (no more next images), at whcih point you can use 
  • ImageMagick/trunk/MagickWand/magick-wand.c

    r7106 r7119  
    9393  wand->images=DestroyImageList(wand->images); 
    9494  wand->image_info=AcquireImageInfo(); 
     95  wand->insert_before=MagickFalse; 
     96  wand->image_pending=MagickFalse; 
    9597  ClearMagickException(wand->exception); 
    9698  wand->debug=IsEventLogging(); 
     
    140142  clone_wand->image_info=CloneImageInfo(wand->image_info); 
    141143  clone_wand->images=CloneImageList(wand->images,clone_wand->exception); 
     144  clone_wand->insert_before=MagickFalse; 
     145  clone_wand->image_pending=MagickFalse; 
    142146  clone_wand->debug=IsEventLogging(); 
    143147  if (clone_wand->debug != MagickFalse) 
     
    827831  wand->images=GetFirstImageInList(wand->images); 
    828832  wand->insert_before=MagickFalse; /* Insert/add after current (first) image */ 
    829   wand->image_pending=MagickTrue;  /* NextImage will remain this image */ 
     833  wand->image_pending=MagickTrue;  /* NextImage will set first image */ 
    830834} 
    831835 
Note: See TracChangeset for help on using the changeset viewer.