%
% o command: Specifies a command to perform.
%
-% o image: the image; XImageCache
-% may transform the image and return a new image pointer.
+% o image: the image; XImageCache may transform the image and return a new
+% image pointer.
%
*/
static void XImageCache(Display *display,XResourceInfo *resource_info,
}
case UndoCommand:
{
+ char
+ image_geometry[MaxTextExtent];
+
/*
Undo the last image transformation.
*/
undo_image=GetPreviousImageInList(undo_image);
windows->image.window_changes.width=(int) cache_image->columns;
windows->image.window_changes.height=(int) cache_image->rows;
+ (void) FormatMagickString(image_geometry,MaxTextExtent,"%dx%d!",
+ windows->image.ximage->width,windows->image.ximage->height);
+ (void) TransformImage(image,windows->image.crop_geometry,image_geometry);
if (windows->image.crop_geometry != (char *) NULL)
windows->image.crop_geometry=(char *)
RelinquishMagickMemory(windows->image.crop_geometry);
if (undo_image != (Image *) NULL)
{
/*
- Ensure the undo stash.has enough memory available.
+ Ensure the undo cache has enough memory available.
*/
previous_image=undo_image;
while (previous_image != (Image *) NULL)