Lines Matching refs:pixel
466 const XPixelInfo *pixel,XAnnotateInfo *annotate_info,Image *image, in XAnnotateImage() argument
507 assert(pixel != (XPixelInfo *) NULL); in XAnnotateImage()
586 pixel->box_color.red),q); in XAnnotateImage()
588 pixel->box_color.green),q); in XAnnotateImage()
590 pixel->box_color.blue),q); in XAnnotateImage()
601 pixel->pen_color.red),q); in XAnnotateImage()
603 pixel->pen_color.green),q); in XAnnotateImage()
605 pixel->pen_color.blue),q); in XAnnotateImage()
1033 pixel; in XBestPixel() local
1071 colors[i].pixel=(size_t) i; in XBestPixel()
1081 pixel.red=colors[i].red-(double) color->red; in XBestPixel()
1082 distance=pixel.red*pixel.red; in XBestPixel()
1085 pixel.green=colors[i].green-(double) color->green; in XBestPixel()
1086 distance+=pixel.green*pixel.green; in XBestPixel()
1089 pixel.blue=colors[i].blue-(double) color->blue; in XBestPixel()
1090 distance+=pixel.blue*pixel.blue; in XBestPixel()
1094 color->pixel=colors[i].pixel; in XBestPixel()
2150 pixel; in XDitherImage() local
2227 pixel=(size_t) (((size_t) color.red & 0xe0) | in XDitherImage()
2230 *q++=(char) pixel; in XDitherImage()
2287 const XPixelInfo *pixel,XDrawInfo *draw_info,Image *image, in XDrawImage() argument
2327 assert(pixel != (XPixelInfo *) NULL); in XDrawImage()
2499 pixel->pen_color.red),q); in XDrawImage()
2501 pixel->pen_color.green),q); in XDrawImage()
2503 pixel->pen_color.blue),q); in XDrawImage()
2742 XStandardColormap *map_info,XPixelInfo *pixel,XFontStruct *font_info, in XFreeResources() argument
2790 (void) XFreeStandardColormap(display,visual_info,map_info,pixel); in XFreeResources()
2836 const XVisualInfo *visual_info,XStandardColormap *map_info,XPixelInfo *pixel) in XFreeStandardColormap() argument
2851 if (pixel != (XPixelInfo *) NULL) in XFreeStandardColormap()
2854 (void) XFreeColors(display,map_info->colormap,pixel->pixels, in XFreeStandardColormap()
2855 (int) pixel->colors,0); in XFreeStandardColormap()
2858 if (pixel != (XPixelInfo *) NULL) in XFreeStandardColormap()
2860 if (pixel->pixels != (unsigned long *) NULL) in XFreeStandardColormap()
2861 pixel->pixels=(unsigned long *) RelinquishMagickMemory(pixel->pixels); in XFreeStandardColormap()
2862 pixel->pixels=(unsigned long *) NULL; in XFreeStandardColormap()
3015 const XResourceInfo *resource_info,Image *image,XPixelInfo *pixel) in XGetPixelInfo() argument
3057 assert(pixel != (XPixelInfo *) NULL); in XGetPixelInfo()
3058 pixel->colors=0; in XGetPixelInfo()
3061 pixel->colors=(ssize_t) image->colors; in XGetPixelInfo()
3063 MagickMax((int) pixel->colors,visual_info->colormap_size)+MaxNumberPens; in XGetPixelInfo()
3064 if (pixel->pixels != (unsigned long *) NULL) in XGetPixelInfo()
3065 pixel->pixels=(unsigned long *) RelinquishMagickMemory(pixel->pixels); in XGetPixelInfo()
3066 pixel->pixels=(unsigned long *) AcquireQuantumMemory(packets, in XGetPixelInfo()
3067 sizeof(*pixel->pixels)); in XGetPixelInfo()
3068 if (pixel->pixels == (unsigned long *) NULL) in XGetPixelInfo()
3076 &pixel->foreground_color); in XGetPixelInfo()
3078 &pixel->foreground_color); in XGetPixelInfo()
3082 pixel->foreground_color.pixel= in XGetPixelInfo()
3083 XStandardPixel(map_info,&pixel->foreground_color); in XGetPixelInfo()
3084 pixel->foreground_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3088 (void) XParseColor(display,colormap,"#d6d6d6d6d6d6",&pixel->background_color); in XGetPixelInfo()
3090 &pixel->background_color); in XGetPixelInfo()
3094 pixel->background_color.pixel= in XGetPixelInfo()
3095 XStandardPixel(map_info,&pixel->background_color); in XGetPixelInfo()
3096 pixel->background_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3101 &pixel->border_color); in XGetPixelInfo()
3103 &pixel->border_color); in XGetPixelInfo()
3107 pixel->border_color.pixel=XStandardPixel(map_info,&pixel->border_color); in XGetPixelInfo()
3108 pixel->border_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3112 pixel->alpha_color=pixel->background_color; in XGetPixelInfo()
3119 &pixel->alpha_color); in XGetPixelInfo()
3123 pixel->alpha_color.pixel=XStandardPixel(map_info,&pixel->alpha_color); in XGetPixelInfo()
3124 pixel->alpha_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3129 pixel->highlight_color.red=(unsigned short) (((double) in XGetPixelInfo()
3130 pixel->alpha_color.red*ScaleQuantumToShort(HighlightModulate))/65535L+ in XGetPixelInfo()
3132 pixel->highlight_color.green=(unsigned short) (((double) in XGetPixelInfo()
3133 pixel->alpha_color.green*ScaleQuantumToShort(HighlightModulate))/65535L+ in XGetPixelInfo()
3135 pixel->highlight_color.blue=(unsigned short) (((double) in XGetPixelInfo()
3136 pixel->alpha_color.blue*ScaleQuantumToShort(HighlightModulate))/65535L+ in XGetPixelInfo()
3138 pixel->highlight_color.pixel=XStandardPixel(map_info,&pixel->highlight_color); in XGetPixelInfo()
3139 pixel->highlight_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3143 pixel->shadow_color.red=(unsigned short) (((double) in XGetPixelInfo()
3144 pixel->alpha_color.red*ScaleQuantumToShort(ShadowModulate))/65535L); in XGetPixelInfo()
3145 pixel->shadow_color.green=(unsigned short) (((double) in XGetPixelInfo()
3146 pixel->alpha_color.green*ScaleQuantumToShort(ShadowModulate))/65535L); in XGetPixelInfo()
3147 pixel->shadow_color.blue=(unsigned short) (((double) in XGetPixelInfo()
3148 pixel->alpha_color.blue*ScaleQuantumToShort(ShadowModulate))/65535L); in XGetPixelInfo()
3149 pixel->shadow_color.pixel=XStandardPixel(map_info,&pixel->shadow_color); in XGetPixelInfo()
3150 pixel->shadow_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3154 pixel->depth_color.red=(unsigned short) (((double) in XGetPixelInfo()
3155 pixel->alpha_color.red*ScaleQuantumToShort(DepthModulate))/65535L); in XGetPixelInfo()
3156 pixel->depth_color.green=(unsigned short) (((double) in XGetPixelInfo()
3157 pixel->alpha_color.green*ScaleQuantumToShort(DepthModulate))/65535L); in XGetPixelInfo()
3158 pixel->depth_color.blue=(unsigned short) (((double) in XGetPixelInfo()
3159 pixel->alpha_color.blue*ScaleQuantumToShort(DepthModulate))/65535L); in XGetPixelInfo()
3160 pixel->depth_color.pixel=XStandardPixel(map_info,&pixel->depth_color); in XGetPixelInfo()
3161 pixel->depth_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3165 pixel->trough_color.red=(unsigned short) (((double) in XGetPixelInfo()
3166 pixel->alpha_color.red*ScaleQuantumToShort(TroughModulate))/65535L); in XGetPixelInfo()
3167 pixel->trough_color.green=(unsigned short) (((double) in XGetPixelInfo()
3168 pixel->alpha_color.green*ScaleQuantumToShort(TroughModulate))/65535L); in XGetPixelInfo()
3169 pixel->trough_color.blue=(unsigned short) (((double) in XGetPixelInfo()
3170 pixel->alpha_color.blue*ScaleQuantumToShort(TroughModulate))/65535L); in XGetPixelInfo()
3171 pixel->trough_color.pixel=XStandardPixel(map_info,&pixel->trough_color); in XGetPixelInfo()
3172 pixel->trough_color.flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3179 &pixel->pen_colors[i]); in XGetPixelInfo()
3181 &pixel->pen_colors[i]); in XGetPixelInfo()
3185 pixel->pen_colors[i].pixel=XStandardPixel(map_info,&pixel->pen_colors[i]); in XGetPixelInfo()
3186 pixel->pen_colors[i].flags=(char) (DoRed | DoGreen | DoBlue); in XGetPixelInfo()
3188 pixel->box_color=pixel->background_color; in XGetPixelInfo()
3189 pixel->pen_color=pixel->foreground_color; in XGetPixelInfo()
3190 pixel->box_index=0; in XGetPixelInfo()
3191 pixel->pen_index=1; in XGetPixelInfo()
3224 pixel->pixels[i]=XGammaPacket(map_info,image->colormap+i); in XGetPixelInfo()
3226 pixel->pixels[image->colors+i]=pixel->pen_colors[i].pixel; in XGetPixelInfo()
3227 pixel->colors+=MaxNumberPens; in XGetPixelInfo()
3850 pixel; in XGetWindowColor() local
3914 color.pixel=XGetPixel(ximage,0,0); in XGetWindowColor()
3920 pixel.red=(double) ScaleShortToQuantum(color.red); in XGetWindowColor()
3921 pixel.green=(double) ScaleShortToQuantum(color.green); in XGetWindowColor()
3922 pixel.blue=(double) ScaleShortToQuantum(color.blue); in XGetWindowColor()
3923 pixel.alpha=OpaqueAlpha; in XGetWindowColor()
3924 (void) QueryColorname(windows->image.image,&pixel,X11Compliance,name, in XGetWindowColor()
4184 pixel; in XGetWindowImage() local
4266 colors[i].pixel=(size_t) i; in XGetWindowImage()
4293 colors[i].pixel=(unsigned long) (red | green | blue); in XGetWindowImage()
4393 pixel=XGetPixel(ximage,x,y); in XGetWindowImage()
4394 index=(pixel >> red_shift) & red_mask; in XGetWindowImage()
4397 index=(pixel >> green_shift) & green_mask; in XGetWindowImage()
4400 index=(pixel >> blue_shift) & blue_mask; in XGetWindowImage()
4418 pixel=XGetPixel(ximage,x,y); in XGetWindowImage()
4419 color=(pixel >> red_shift) & red_mask; in XGetWindowImage()
4424 color=(pixel >> green_shift) & green_mask; in XGetWindowImage()
4429 color=(pixel >> blue_shift) & blue_mask; in XGetWindowImage()
4457 composite_image->colormap[colors[i].pixel].red=(double) in XGetWindowImage()
4459 composite_image->colormap[colors[i].pixel].green=(double) in XGetWindowImage()
4461 composite_image->colormap[colors[i].pixel].blue=(double) in XGetWindowImage()
4572 XStandardColormap *map_info,XPixelInfo *pixel,XFontStruct *font_info, in XGetWindowInfo() argument
4582 assert(pixel != (XPixelInfo *) NULL); in XGetWindowInfo()
4645 window->pixel_info=pixel; in XGetWindowInfo()
4662 window->annotate_context=pixel->annotate_context; in XGetWindowInfo()
4663 window->highlight_context=pixel->highlight_context; in XGetWindowInfo()
4664 window->widget_context=pixel->widget_context; in XGetWindowInfo()
4674 window->attributes.background_pixel=pixel->background_color.pixel; in XGetWindowInfo()
4679 window->attributes.border_pixel=pixel->border_color.pixel; in XGetWindowInfo()
5888 pixel, in XMakeImageLSBFirst() local
6011 pixel=pixels[(ssize_t) GetPixelIndex(canvas,p)] & 0x0f; in XMakeImageLSBFirst()
6016 *q=(unsigned char) pixel; in XMakeImageLSBFirst()
6022 *q|=(unsigned char) (pixel << 2); in XMakeImageLSBFirst()
6028 *q|=(unsigned char) (pixel << 4); in XMakeImageLSBFirst()
6034 *q|=(unsigned char) (pixel << 6); in XMakeImageLSBFirst()
6063 pixel=pixels[(ssize_t) GetPixelIndex(canvas,p)] & 0xf; in XMakeImageLSBFirst()
6068 *q=(unsigned char) pixel; in XMakeImageLSBFirst()
6074 *q|=(unsigned char) (pixel << 4); in XMakeImageLSBFirst()
6106 pixel=pixels[(ssize_t) GetPixelIndex(canvas,p)]; in XMakeImageLSBFirst()
6107 *q++=(unsigned char) pixel; in XMakeImageLSBFirst()
6134 pixel=pixels[(ssize_t) GetPixelIndex(canvas,p)]; in XMakeImageLSBFirst()
6137 *q++=(unsigned char) (pixel & 0xff); in XMakeImageLSBFirst()
6138 pixel>>=8; in XMakeImageLSBFirst()
6167 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageLSBFirst()
6168 pixel&=0xf; in XMakeImageLSBFirst()
6173 *q=(unsigned char) pixel; in XMakeImageLSBFirst()
6179 *q|=(unsigned char) (pixel << 2); in XMakeImageLSBFirst()
6185 *q|=(unsigned char) (pixel << 4); in XMakeImageLSBFirst()
6191 *q|=(unsigned char) (pixel << 6); in XMakeImageLSBFirst()
6220 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageLSBFirst()
6221 pixel&=0xf; in XMakeImageLSBFirst()
6226 *q=(unsigned char) pixel; in XMakeImageLSBFirst()
6232 *q|=(unsigned char) (pixel << 4); in XMakeImageLSBFirst()
6264 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageLSBFirst()
6265 *q++=(unsigned char) pixel; in XMakeImageLSBFirst()
6381 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageLSBFirst()
6384 *q++=(unsigned char) (pixel & 0xff); in XMakeImageLSBFirst()
6385 pixel>>=8; in XMakeImageLSBFirst()
6504 pixel, in XMakeImageMSBFirst() local
6628 pixel=pixels[(ssize_t) in XMakeImageMSBFirst()
6634 *q=(unsigned char) (pixel << 6); in XMakeImageMSBFirst()
6640 *q|=(unsigned char) (pixel << 4); in XMakeImageMSBFirst()
6646 *q|=(unsigned char) (pixel << 2); in XMakeImageMSBFirst()
6652 *q|=(unsigned char) pixel; in XMakeImageMSBFirst()
6681 pixel=pixels[(ssize_t) in XMakeImageMSBFirst()
6687 *q=(unsigned char) (pixel << 4); in XMakeImageMSBFirst()
6693 *q|=(unsigned char) pixel; in XMakeImageMSBFirst()
6725 pixel=pixels[(ssize_t) GetPixelIndex(canvas,p)]; in XMakeImageMSBFirst()
6726 *q++=(unsigned char) pixel; in XMakeImageMSBFirst()
6756 pixel=pixels[(ssize_t) in XMakeImageMSBFirst()
6760 channel[k]=(unsigned char) pixel; in XMakeImageMSBFirst()
6761 pixel>>=8; in XMakeImageMSBFirst()
6792 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageMSBFirst()
6793 pixel&=0xf; in XMakeImageMSBFirst()
6798 *q=(unsigned char) (pixel << 6); in XMakeImageMSBFirst()
6804 *q|=(unsigned char) (pixel << 4); in XMakeImageMSBFirst()
6810 *q|=(unsigned char) (pixel << 2); in XMakeImageMSBFirst()
6816 *q|=(unsigned char) pixel; in XMakeImageMSBFirst()
6845 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageMSBFirst()
6846 pixel&=0xf; in XMakeImageMSBFirst()
6851 *q=(unsigned char) (pixel << 4); in XMakeImageMSBFirst()
6857 *q|=(unsigned char) pixel; in XMakeImageMSBFirst()
6889 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageMSBFirst()
6890 *q++=(unsigned char) pixel; in XMakeImageMSBFirst()
7009 pixel=XGammaPixel(canvas,map_info,p); in XMakeImageMSBFirst()
7012 channel[k]=(unsigned char) pixel; in XMakeImageMSBFirst()
7013 pixel>>=8; in XMakeImageMSBFirst()
7103 pixel; in XMakeMagnifyImage() local
7488 (ssize_t) windows->magnify.x,(ssize_t) windows->magnify.y,&pixel,exception); in XMakeMagnifyImage()
7492 ConcatenateColorComponent(&pixel,RedPixelChannel,X11Compliance,tuple); in XMakeMagnifyImage()
7494 ConcatenateColorComponent(&pixel,GreenPixelChannel,X11Compliance,tuple); in XMakeMagnifyImage()
7496 ConcatenateColorComponent(&pixel,BluePixelChannel,X11Compliance,tuple); in XMakeMagnifyImage()
7497 if (pixel.colorspace == CMYKColorspace) in XMakeMagnifyImage()
7500 ConcatenateColorComponent(&pixel,BlackPixelChannel,X11Compliance,tuple); in XMakeMagnifyImage()
7502 if (pixel.alpha_trait != UndefinedPixelTrait) in XMakeMagnifyImage()
7505 ConcatenateColorComponent(&pixel,AlphaPixelChannel,X11Compliance,tuple); in XMakeMagnifyImage()
7514 GetColorTuple(&pixel,MagickTrue,tuple); in XMakeMagnifyImage()
7518 (void) QueryColorname(windows->image.image,&pixel,SVGCompliance,tuple, in XMakeMagnifyImage()
7672 const DiversityPacket *pixel) in DiversityPixelIntensity() argument
7677 intensity=0.212656*pixel->red+0.715158*pixel->green+0.072186*pixel->blue; in DiversityPixelIntensity()
7720 XStandardColormap *map_info,XPixelInfo *pixel,ExceptionInfo *exception) in XMakeStandardColormap() argument
7748 assert(pixel != (XPixelInfo *) NULL); in XMakeStandardColormap()
7755 pixel); in XMakeStandardColormap()
7810 pixel); in XMakeStandardColormap()
7847 (void) XFreeStandardColormap(display,visual_info,map_info,pixel); in XMakeStandardColormap()
7860 XGetPixelInfo(display,visual_info,map_info,resource_info,image,pixel); in XMakeStandardColormap()
7898 pixel->pixels[i]=color.pixel; in XMakeStandardColormap()
7921 (void) XAllocColor(display,colormap,&pixel->foreground_color); in XMakeStandardColormap()
7922 (void) XAllocColor(display,colormap,&pixel->background_color); in XMakeStandardColormap()
7923 (void) XAllocColor(display,colormap,&pixel->border_color); in XMakeStandardColormap()
7924 (void) XAllocColor(display,colormap,&pixel->alpha_color); in XMakeStandardColormap()
7925 (void) XAllocColor(display,colormap,&pixel->highlight_color); in XMakeStandardColormap()
7926 (void) XAllocColor(display,colormap,&pixel->shadow_color); in XMakeStandardColormap()
7927 (void) XAllocColor(display,colormap,&pixel->depth_color); in XMakeStandardColormap()
7928 (void) XAllocColor(display,colormap,&pixel->trough_color); in XMakeStandardColormap()
7930 (void) XAllocColor(display,colormap,&pixel->pen_colors[i]); in XMakeStandardColormap()
7936 NULL,0,pixel->pixels,(unsigned int) image->colors); in XMakeStandardColormap()
8032 pixel->pixels[index]=color.pixel; in XMakeStandardColormap()
8044 server_colors[x].pixel=(size_t) x; in XMakeStandardColormap()
8068 pixel->pixels[index]=color.pixel; in XMakeStandardColormap()
8112 p->pixel=(unsigned long) i; in XMakeStandardColormap()
8122 (unsigned long *) NULL,0,pixel->pixels,(unsigned int) in XMakeStandardColormap()
8127 p->pixel=pixel->pixels[i]; in XMakeStandardColormap()
8135 (unsigned long *) NULL,0,pixel->pixels,(unsigned int) in XMakeStandardColormap()
8155 color.pixel=pixel->pixels[i]; in XMakeStandardColormap()
8202 color.pixel=XStandardPixel(map_info,&color); in XMakeStandardColormap()
8221 color.pixel=XStandardPixel(map_info,&color); in XMakeStandardColormap()
8240 &pixel->foreground_color); in XMakeStandardColormap()
8242 &pixel->background_color); in XMakeStandardColormap()
8243 if (pixel->background_color.pixel == pixel->foreground_color.pixel) in XMakeStandardColormap()
8248 pixel->background_color.red=(~pixel->foreground_color.red); in XMakeStandardColormap()
8249 pixel->background_color.green= in XMakeStandardColormap()
8250 (~pixel->foreground_color.green); in XMakeStandardColormap()
8251 pixel->background_color.blue= in XMakeStandardColormap()
8252 (~pixel->foreground_color.blue); in XMakeStandardColormap()
8254 &pixel->background_color); in XMakeStandardColormap()
8257 &pixel->border_color); in XMakeStandardColormap()
8259 &pixel->alpha_color); in XMakeStandardColormap()
8261 &pixel->highlight_color); in XMakeStandardColormap()
8263 &pixel->shadow_color); in XMakeStandardColormap()
8265 &pixel->depth_color); in XMakeStandardColormap()
8267 &pixel->trough_color); in XMakeStandardColormap()
8271 &pixel->pen_colors[i]); in XMakeStandardColormap()
8272 pixel->pixels[image->colors+i]=pixel->pen_colors[i].pixel; in XMakeStandardColormap()
8274 pixel->colors=(ssize_t) (image->colors+MaxNumberPens); in XMakeStandardColormap()
9006 pixel; in XRenderImage() local
9046 pixel.pixels=(unsigned long *) NULL; in XRenderImage()
9059 XFreeResources(display,visual_info,map_info,&pixel,font_info, in XRenderImage()
9071 &pixel); in XRenderImage()
9072 pixel.annotate_context=XDefaultGC(display,visual_info->screen); in XRenderImage()
9079 XFreeResources(display,visual_info,map_info,&pixel,font_info, in XRenderImage()
9149 pixel.pen_color.red=ScaleQuantumToShort(draw_info->fill.red); in XRenderImage()
9150 pixel.pen_color.green=ScaleQuantumToShort(draw_info->fill.green); in XRenderImage()
9151 pixel.pen_color.blue=ScaleQuantumToShort(draw_info->fill.blue); in XRenderImage()
9152 status=XAnnotateImage(display,&pixel,&annotate_info,image,exception); in XRenderImage()