Lines Matching refs:ximage
312 if (magick_windows[i]->ximage != (XImage *) NULL) in DestroyXResources()
314 XDestroyImage(magick_windows[i]->ximage); in DestroyXResources()
315 magick_windows[i]->ximage=(XImage *) NULL; in DestroyXResources()
1999 (void) FormatLocaleFile(file," depth: %d\n",windows->image.ximage->depth); in XDisplayImageInfo()
2008 windows->image.ximage->width,windows->image.ximage->height); in XDisplayImageInfo()
2108 static void XDitherImage(Image *image,XImage *ximage,ExceptionInfo *exception) in XDitherImage() argument
2201 scanline_pad=(unsigned int) (ximage->bytes_per_line- in XDitherImage()
2202 ((size_t) (ximage->width*ximage->bits_per_pixel) >> 3)); in XDitherImage()
2205 q=ximage->data; in XDitherImage()
2747 if (window_info->ximage != (XImage *) NULL) in XFreeResources()
2748 XDestroyImage(window_info->ximage); in XFreeResources()
3856 *ximage; in XGetWindowColor() local
3899 ximage=XGetImage(display,target_window,x,y,1,1,AllPlanes,ZPixmap); in XGetWindowColor()
3900 if (ximage == (XImage *) NULL) in XGetWindowColor()
3902 color.pixel=XGetPixel(ximage,0,0); in XGetWindowColor()
3903 XDestroyImage(ximage); in XGetWindowColor()
4181 *ximage; in XGetWindowImage() local
4215 ximage=XGetImage(display,window_info[id].window,(int) in XGetWindowImage()
4219 if (ximage == (XImage *) NULL) in XGetWindowImage()
4247 XDestroyImage(ximage); in XGetWindowImage()
4315 XDestroyImage(ximage); in XGetWindowImage()
4324 composite_image->columns=(size_t) ximage->width; in XGetWindowImage()
4325 composite_image->rows=(size_t) ximage->height; in XGetWindowImage()
4381 pixel=XGetPixel(ximage,x,y); in XGetWindowImage()
4406 pixel=XGetPixel(ximage,x,y); in XGetWindowImage()
4439 XDestroyImage(ximage); in XGetWindowImage()
4463 index=(Quantum) XGetPixel(ximage,x,y); in XGetWindowImage()
4477 XDestroyImage(ximage); in XGetWindowImage()
4600 window->ximage=(XImage *) NULL; in XGetWindowInfo()
5432 *ximage; in XMakeImage() local
5518 ximage=(XImage *) NULL; in XMakeImage()
5529 ximage=XShmCreateImage(display,window->visual,(unsigned int) depth,format, in XMakeImage()
5531 if (ximage == (XImage *) NULL) in XMakeImage()
5535 length=(size_t) ximage->bytes_per_line*ximage->height; in XMakeImage()
5536 if (CheckOverflowException(length,ximage->bytes_per_line,ximage->height)) in XMakeImage()
5549 if (ximage != (XImage *) NULL) in XMakeImage()
5550 XDestroyImage(ximage); in XMakeImage()
5551 ximage=(XImage *) NULL; in XMakeImage()
5580 ximage->data=segment_info[1].shmaddr; in XMakeImage()
5590 ximage->data=NULL; in XMakeImage()
5591 XDestroyImage(ximage); in XMakeImage()
5592 ximage=(XImage *) NULL; in XMakeImage()
5605 ximage=XCreateImage(display,window->visual,(unsigned int) depth,format,0, in XMakeImage()
5607 if (ximage == (XImage *) NULL) in XMakeImage()
5615 length=(size_t) ximage->bytes_per_line*ximage->height; in XMakeImage()
5620 ximage->width,ximage->height); in XMakeImage()
5622 ximage->format); in XMakeImage()
5624 ximage->byte_order); in XMakeImage()
5626 " bitmap unit, bit order, pad: %d %d %d",ximage->bitmap_unit, in XMakeImage()
5627 ximage->bitmap_bit_order,ximage->bitmap_pad); in XMakeImage()
5629 ximage->depth); in XMakeImage()
5631 ximage->bytes_per_line); in XMakeImage()
5633 ximage->bits_per_pixel); in XMakeImage()
5635 " red, green, blue masks: 0x%lx 0x%lx 0x%lx",ximage->red_mask, in XMakeImage()
5636 ximage->green_mask,ximage->blue_mask); in XMakeImage()
5640 if (ximage->format == XYBitmap) in XMakeImage()
5642 ximage->data=(char *) AcquireQuantumMemory((size_t) in XMakeImage()
5643 ximage->bytes_per_line,(size_t) ximage->depth*ximage->height); in XMakeImage()
5644 if (ximage->data != (char *) NULL) in XMakeImage()
5645 (void) memset(ximage->data,0,(size_t) in XMakeImage()
5646 ximage->bytes_per_line*ximage->depth*ximage->height); in XMakeImage()
5650 ximage->data=(char *) AcquireQuantumMemory((size_t) in XMakeImage()
5651 ximage->bytes_per_line,(size_t) ximage->height); in XMakeImage()
5652 if (ximage->data != (char *) NULL) in XMakeImage()
5653 (void) memset(ximage->data,0,(size_t) in XMakeImage()
5654 ximage->bytes_per_line*ximage->height); in XMakeImage()
5657 if (ximage->data == (char *) NULL) in XMakeImage()
5662 XDestroyImage(ximage); in XMakeImage()
5663 ximage=(XImage *) NULL; in XMakeImage()
5667 if (window->ximage != (XImage *) NULL) in XMakeImage()
5672 length=(size_t) window->ximage->bytes_per_line*window->ximage->height; in XMakeImage()
5690 window->ximage->data=(char *) NULL; in XMakeImage()
5694 if (window->ximage->data != (char *) NULL) in XMakeImage()
5695 free(window->ximage->data); in XMakeImage()
5696 window->ximage->data=(char *) NULL; in XMakeImage()
5697 XDestroyImage(window->ximage); in XMakeImage()
5698 window->ximage=(XImage *) NULL; in XMakeImage()
5710 window->ximage=ximage; in XMakeImage()
5770 if ((ximage->byte_order == LSBFirst) || ((ximage->format == XYBitmap) && in XMakeImage()
5771 (ximage->bitmap_bit_order == LSBFirst))) in XMakeImage()
5772 XMakeImageLSBFirst(resource_info,window,window->image,ximage, in XMakeImage()
5775 XMakeImageMSBFirst(resource_info,window,window->image,ximage, in XMakeImage()
5857 const XWindowInfo *window,Image *image,XImage *ximage,XImage *matte_image, in XMakeImageLSBFirst() argument
5929 scanline_pad=(unsigned int) (ximage->bytes_per_line-((ximage->width* in XMakeImageLSBFirst()
5930 ximage->bits_per_pixel) >> 3)); in XMakeImageLSBFirst()
5933 q=(unsigned char *) ximage->data; in XMakeImageLSBFirst()
5936 if (ximage->format == XYBitmap) in XMakeImageLSBFirst()
5990 switch (ximage->bits_per_pixel) in XMakeImageLSBFirst()
6093 XDitherImage(canvas,ximage,exception); in XMakeImageLSBFirst()
6123 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3); in XMakeImageLSBFirst()
6146 switch (ximage->bits_per_pixel) in XMakeImageLSBFirst()
6251 XDitherImage(canvas,ximage,exception); in XMakeImageLSBFirst()
6272 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) && in XMakeImageLSBFirst()
6316 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) && in XMakeImageLSBFirst()
6370 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3); in XMakeImageLSBFirst()
6473 const XWindowInfo *window,Image *image,XImage *ximage,XImage *matte_image, in XMakeImageMSBFirst() argument
6546 scanline_pad=(unsigned int) (ximage->bytes_per_line-((ximage->width* in XMakeImageMSBFirst()
6547 ximage->bits_per_pixel) >> 3)); in XMakeImageMSBFirst()
6550 q=(unsigned char *) ximage->data; in XMakeImageMSBFirst()
6553 if (ximage->format == XYBitmap) in XMakeImageMSBFirst()
6607 switch (ximage->bits_per_pixel) in XMakeImageMSBFirst()
6712 XDitherImage(canvas,ximage,exception); in XMakeImageMSBFirst()
6745 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3); in XMakeImageMSBFirst()
6771 switch (ximage->bits_per_pixel) in XMakeImageMSBFirst()
6876 XDitherImage(canvas,ximage,exception); in XMakeImageMSBFirst()
6897 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) && in XMakeImageMSBFirst()
6941 if ((ximage->bits_per_pixel == 32) && (map_info->red_max == 255) && in XMakeImageMSBFirst()
6998 bytes_per_pixel=(unsigned int) (ximage->bits_per_pixel >> 3); in XMakeImageMSBFirst()
7132 *ximage; in XMakeMagnifyImage() local
7143 while ((magnify*windows->image.ximage->width) < windows->magnify.width) in XMakeMagnifyImage()
7145 while ((magnify*windows->image.ximage->height) < windows->magnify.height) in XMakeMagnifyImage()
7178 ximage=windows->image.ximage; in XMakeMagnifyImage()
7179 width=(unsigned int) windows->magnify.ximage->width; in XMakeMagnifyImage()
7180 height=(unsigned int) windows->magnify.ximage->height; in XMakeMagnifyImage()
7182 (windows->magnify.x >= windows->image.ximage->width)) in XMakeMagnifyImage()
7183 windows->magnify.x=windows->image.ximage->width >> 1; in XMakeMagnifyImage()
7188 if (x > (int) (ximage->width-(width/magnify))) in XMakeMagnifyImage()
7189 x=ximage->width-width/magnify; in XMakeMagnifyImage()
7191 (windows->magnify.y >= windows->image.ximage->height)) in XMakeMagnifyImage()
7192 windows->magnify.y=windows->image.ximage->height >> 1; in XMakeMagnifyImage()
7197 if (y > (int) (ximage->height-(height/magnify))) in XMakeMagnifyImage()
7198 y=ximage->height-height/magnify; in XMakeMagnifyImage()
7199 q=(unsigned char *) windows->magnify.ximage->data; in XMakeMagnifyImage()
7200 scanline_pad=(unsigned int) (windows->magnify.ximage->bytes_per_line- in XMakeMagnifyImage()
7201 ((width*windows->magnify.ximage->bits_per_pixel) >> 3)); in XMakeMagnifyImage()
7202 if (ximage->bits_per_pixel < 8) in XMakeMagnifyImage()
7218 switch (ximage->bitmap_bit_order) in XMakeMagnifyImage()
7227 if (ximage->format == XYBitmap) in XMakeMagnifyImage()
7245 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+ in XMakeMagnifyImage()
7246 ((x*ximage->bits_per_pixel) >> 3); in XMakeMagnifyImage()
7247 p_bit=(unsigned char) (x*ximage->bits_per_pixel) & 0x07; in XMakeMagnifyImage()
7260 for (plane=0; (int) plane < ximage->bits_per_pixel; plane++) in XMakeMagnifyImage()
7276 p_bit+=ximage->bits_per_pixel; in XMakeMagnifyImage()
7299 if (ximage->format == XYBitmap) in XMakeMagnifyImage()
7317 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+ in XMakeMagnifyImage()
7318 ((x*ximage->bits_per_pixel) >> 3); in XMakeMagnifyImage()
7319 p_bit=(unsigned char) (x*ximage->bits_per_pixel) & 0x07; in XMakeMagnifyImage()
7332 for (plane=0; (int) plane < ximage->bits_per_pixel; plane++) in XMakeMagnifyImage()
7348 p_bit+=ximage->bits_per_pixel; in XMakeMagnifyImage()
7366 switch (ximage->bits_per_pixel) in XMakeMagnifyImage()
7381 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+ in XMakeMagnifyImage()
7382 ((x*ximage->bits_per_pixel) >> 3); in XMakeMagnifyImage()
7407 bytes_per_pixel=(unsigned int) ximage->bits_per_pixel >> 3; in XMakeMagnifyImage()
7415 p=(unsigned char *) ximage->data+y*ximage->bytes_per_line+ in XMakeMagnifyImage()
7416 ((x*ximage->bits_per_pixel) >> 3); in XMakeMagnifyImage()
7441 if (x > (int) (ximage->width-(width/magnify))) in XMakeMagnifyImage()
7442 x=(int) ((ximage->width-windows->magnify.x)*magnify-(width >> 1)); in XMakeMagnifyImage()
7449 if (y > (int) (ximage->height-(height/magnify))) in XMakeMagnifyImage()
7450 y=(int) ((ximage->height-windows->magnify.y)*magnify-(height >> 1)); in XMakeMagnifyImage()
7457 windows->magnify.annotate_context,windows->magnify.ximage,0,0,x,y,width-x, in XMakeMagnifyImage()
7580 if (window->ximage == (XImage *) NULL) in XMakePixmap()
7590 width=(unsigned int) window->ximage->width; in XMakePixmap()
7591 height=(unsigned int) window->ximage->height; in XMakePixmap()
7607 window->ximage,0,0,0,0,width,height,MagickTrue); in XMakePixmap()
7611 window->ximage,0,0,0,0,width,height); in XMakePixmap()
8790 if (window->ximage == (XImage *) NULL) in XRefreshWindow()
8827 if ((window->ximage->width-(x+window->x)) < (int) width) in XRefreshWindow()
8828 width=(unsigned int) (window->ximage->width-(x+window->x)); in XRefreshWindow()
8829 if ((window->ximage->height-(y+window->y)) < (int) height) in XRefreshWindow()
8830 height=(unsigned int) (window->ximage->height-(y+window->y)); in XRefreshWindow()
8851 window->ximage,x+window->x,y+window->y,x,y,width,height,MagickTrue); in XRefreshWindow()
8855 window->ximage,x+window->x,y+window->y,x,y,width,height); in XRefreshWindow()