void *_showInImageMagickWindow (void * ptr) { SEXP x; Image * images; ImageInfo * image_info; x = (SEXP) ptr; THREAD_ON = 1; images = sexp2Magick (x); image_info = CloneImageInfo ( (ImageInfo *)NULL ); strcpy (image_info->filename, "\0"); DisplayImages (image_info, images); THREAD_ON = 0; images = DestroyImageList (images); image_info = DestroyImageInfo (image_info); return NULL; }
/* Method: ImageList#display Purpose: Display all the images to an X window screen. */ VALUE ImageList_display(VALUE self) { Image *images; Info *info; volatile VALUE info_obj; // Create a new Info object to use with this call info_obj = rm_info_new(); Data_Get_Struct(info_obj, Info, info); // Convert the images array to an images sequence. images = images_from_imagelist(self); (void) DisplayImages(info, images); rm_split(images); rm_check_image_exception(images, RetainOnError); return self; }
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % W r i t e X I m a g e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % WriteXImage() writes an image to an X server. % % The format of the WriteXImage method is: % % MagickBooleanType WriteXImage(const ImageInfo *image_info,Image *image) % % A description of each parameter follows. % % o image_info: the image info. % % o image: The image. % */ static MagickBooleanType WriteXImage(const ImageInfo *image_info,Image *image) { return(DisplayImages(image_info,image)); }
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % W r i t e X I m a g e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % WriteXImage() writes an image to an X server. % % The format of the WriteXImage method is: % % MagickBooleanType WriteXImage(const ImageInfo *image_info, % Image *image,ExceptionInfo *exception) % % A description of each parameter follows. % % o image_info: the image info. % % o image: The image. % % o exception: return any errors or warnings in this structure. % */ static MagickBooleanType WriteXImage(const ImageInfo *image_info,Image *image, ExceptionInfo *exception) { return(DisplayImages(image_info,image,exception)); }