Home | History | Annotate | Download | only in MagickCore

Lines Matching defs:ximage

223     XImage *,XImage *,ExceptionInfo *),
225 XImage *,XImage *,ExceptionInfo *);
317 if (magick_windows[i]->ximage != (XImage *) NULL)
319 XDestroyImage(magick_windows[i]->ximage);
320 magick_windows[i]->ximage=(XImage *) NULL;
505 XImage
547 if (annotate_ximage == (XImage *) NULL)
2018 (void) FormatLocaleFile(file," depth: %d\n",windows->image.ximage->depth);
2027 windows->image.ximage->width,windows->image.ximage->height);
2116 % void XDitherImage(Image *image,XImage *ximage,ExceptionInfo *exception)
2122 % o ximage: Specifies a pointer to a XImage structure; returned from
2128 static void XDitherImage(Image *image,XImage *ximage,ExceptionInfo *exception)
2229 scanline_pad=(unsigned int) (ximage->bytes_per_line-
2230 ((size_t) (ximage->width*ximage->bits_per_pixel) >> 3));
2233 q=ximage->data;
2343 XImage
2468 if (draw_ximage == (XImage *) NULL)
2778 if (window_info->ximage != (XImage *) NULL)
2779 XDestroyImage(window_info->ximage);
3903 XImage
3904 *ximage;
3947 ximage=XGetImage(display,target_window,x,y,1,1,AllPlanes,ZPixmap);
3948 if (ximage == (XImage *) NULL)
3950 color.pixel=XGetPixel(ximage,0,0);
3951 XDestroyImage(ximage);
4229 XImage
4230 *ximage;
4264 ximage=XGetImage(display,window_info[id].window,(int)
4268 if (ximage == (XImage *) NULL)
4296 XDestroyImage(ximage);
4364 XDestroyImage(ximage);
4373 composite_image->columns=(size_t) ximage->width;
4374 composite_image->rows=(size_t) ximage->height;
4430 pixel=XGetPixel(ximage,x,y);
4455 pixel=XGetPixel(ximage,x,y);
4488 XDestroyImage(ximage);
4512 index=(Quantum) XGetPixel(ximage,x,y);
4526 XDestroyImage(ximage);
4650 window->ximage=(XImage *) NULL;
4651 window->matte_image=(XImage *) NULL;
5487 XImage
5489 *ximage;
5575 ximage=(XImage *) NULL;
5586 ximage=XShmCreateImage(display,window->visual,(unsigned int) depth,format,
5588 if (ximage == (XImage *) NULL)
5592 length=(size_t) ximage->bytes_per_line*ximage->height;
5593 if (CheckOverflowException(length,ximage->bytes_per_line,ximage->height))
5606 if (ximage != (XImage *) NULL)
5607 XDestroyImage(ximage);
5608 ximage=(XImage *) NULL;
5637 ximage->data=segment_info[1].shmaddr;
5647 ximage->data=NULL;
5648 XDestroyImage(ximage);
5649 ximage=(XImage *) NULL;
5662 ximage
5664 if (ximage == (XImage *) NULL)
5672 length=(size_t) ximage->bytes_per_line*ximage->height;
5675 (void) LogMagickEvent(X11Event,GetMagickModule(),"XImage:");
5677 ximage->width,ximage->height);
5679 ximage->format);
5681 ximage->byte_order);
5683 " bitmap unit, bit order, pad: %d %d %d",ximage->bitmap_unit,
5684 ximage->bitmap_bit_order,ximage->bitmap_pad);
5686 ximage->depth);
5688 ximage->bytes_per_line);
5690 ximage->bits_per_pixel);
5692 " red, green, blue masks: 0x%lx 0x%lx 0x%lx",ximage->red_mask,
5693 ximage->green_mask,ximage->blue_mask);
5697 if (ximage->format != XYBitmap)
5698 ximage->data=(char *) malloc((size_t) ximage->bytes_per_line*
5699 ximage->height);
5701 ximage->data=(char *) malloc((size_t) ximage->bytes_per_line*
5702 ximage->depth*ximage->height);
5704 if (ximage->data == (char *) NULL)
5709 XDestroyImage(ximage);
5710 ximage=(XImage *) NULL;
5714 if (window->ximage != (XImage *) NULL)
5719 length=(size_t) window->ximage->bytes_per_line*window->ximage->height;
5737 window->ximage->data=(char *) NULL;
5741 if (window->ximage->data != (char *) NULL)
5742 free(window->ximage->data);
5743 window->ximage->data=(char *) NULL;
5744 XDestroyImage(window->ximage);
5745 window->ximage=(XImage *) NULL;
5757 window->ximage=ximage;
5758 matte_image=(XImage *) NULL;
5775 if (matte_image != (XImage *) NULL)
5786 matte_image=(XImage *) NULL;
5790 if (window->matte_image != (XImage *) NULL)
5799 window->matte_image=(XImage *) NULL;
5817 if ((ximage->byte_order == LSBFirst) || ((ximage->format == XYBitmap) &&
5818 (ximage->bitmap_bit_order == LSBFirst)))
5819 XMakeImageLSBFirst(resource_info,window,window->image,ximage,
5822 XMakeImageMSBFirst(resource_info,window,window->image,ximage,
5825 if (window->matte_image != (XImage *) NULL)
5895 % o ximage: Specifies a pointer to a XImage structure; returned from
5898 % o matte_image: Specifies a pointer to a XImage structure; returned from
5905 const XWindowInfo *window,Image *image,XImage *ximage,XImage *matte_image,
5977 scanline_pad=(unsigned int) (ximage->bytes_per_line-((ximage->width*
5978 ximage->bits_per_pixel) >> 3));
5981 q=(unsigned char *) ximage->data;
5984 if (ximage->format == XYBitmap)
6038 switch (ximage->bits_per_pixel)
6141 XDitherImage(canvas,ximage,exception);
6171 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3);
6194 switch (ximage->bits_per_pixel)
6299 XDitherImage(canvas,ximage,exception);
6320 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) &&
6364 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) &&
6418 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3);
6441 if (matte_image != (XImage *) NULL)
6501 % XMakeImageMSBFirst(resource_info,window,image,ximage,matte_image,
6512 % o ximage: Specifies a pointer to a XImage structure; returned from
6515 % o matte_image: Specifies a pointer to a XImage structure; returned from
6522 const XWindowInfo *window,Image *image,XImage *ximage,XImage *matte_image,
6595 scanline_pad=(unsigned int) (ximage->bytes_per_line-((ximage->width*
6596 ximage->bits_per_pixel) >> 3));
6599 q=(unsigned char *) ximage->data;
6602 if (ximage->format == XYBitmap)
6656 switch (ximage->bits_per_pixel)
6761 XDitherImage(canvas,ximage,exception);
6794 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3);
6820 switch (ximage->bits_per_pixel)
6925 XDitherImage(canvas,ximage,exception);
6946 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) &&
6990 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) &&
7047 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3);
7072 if (matte_image != (XImage *) NULL)
7181 XImage
7182 *ximage;
7193 while ((magnify*windows->image.ximage->width) < windows->magnify.width)
7195 while ((magnify*windows->image.ximage->height) < windows->magnify.height)
7228 ximage=windows->image.ximage;
7229 ximage->width;
7230 height=(unsigned int) windows->magnify.ximage->height;
7232 (windows->magnify.x >= windows->image.ximage->width))
7233 windows->magnify.x=windows->image.ximage->width >> 1;
7238 if (x > (int) (ximage->width-(width/magnify)))
7239 x=ximage->width-width/magnify;
7241 (windows->magnify.y >= windows->image.ximage->height))
7242 windows->magnify.y=windows->image.ximage->height >> 1;
7247 if (y > (int) (ximage->height-(height/magnify)))
7248 y=ximage->height-height/magnify;
7249 q=(unsigned char *) windows->magnify.ximage->data;
7250 scanline_pad=(unsigned int) (windows->magnify.ximage->bytes_per_line-
7251 ((width*windows->magnify.ximage->bits_per_pixel) >> 3));
7252 if (ximage->bits_per_pixel < 8)
7268 switch (ximage->bitmap_bit_order)
7277 if (ximage->format == XYBitmap)
7295 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+
7296 ((x*ximage->bits_per_pixel) >> 3);
7297 p_bit=(unsigned char) (x*ximage->bits_per_pixel) & 0x07;
7310 for (plane=0; (int) plane < ximage->bits_per_pixel; plane++)
7326 p_bit+=ximage->bits_per_pixel;
7349 if (ximage->format == XYBitmap)
7367 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+
7368 ((x*ximage->bits_per_pixel) >> 3);
7369 p_bit=(unsigned char) (x*ximage->bits_per_pixel) & 0x07;
7382 for (plane=0; (int) plane < ximage->bits_per_pixel; plane++)
7398 p_bit+=ximage->bits_per_pixel;
7416 switch (ximage->bits_per_pixel)
7431 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+
7432 ((x*ximage->bits_per_pixel) >> 3);
7457 bytes_per_pixel=(unsigned int) ximage->bits_per_pixel >> 3;
7465 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+
7466 ((x*ximage->bits_per_pixel) >> 3);
7491 if (x > (int) (ximage->width-(width/magnify)))
7492 x=(int) ((ximage->width-windows->magnify.x)*magnify-(width >> 1));
7499 if (y > (int) (ximage->height-(height/magnify)))
7500 y=(int) ((ximage->height-windows->magnify.y)*magnify-(height >> 1));
7507 windows->magnify.annotate_context,windows->magnify.ximage,0,0,x,y,width-x,
7631 if (window->ximage == (XImage *) NULL)
7641 width=(unsigned int) window->ximage->width;
7642 height=(unsigned int) window->ximage->height;
7658 window->ximage,0,0,0,0,width,height,MagickTrue);
7662 window->ximage,0,0,0,0,width,height);
8847 if (window->ximage == (XImage *) NULL)
8884 if ((window->ximage->width-(x+window->x)) < (int) width)
8885 width=(unsigned int) (window->ximage->width-(x+window->x));
8886 if ((window->ximage->height-(y+window->y)) < (int) height)
8887 height=(unsigned int) (window->ximage->height-(y+window->y));
8908 window->ximage,x+window->x,y+window->y,x,y,width,height,MagickTrue);
8912 window->ximage,x+window->x,y+window->y,x,y,width,height);