Lines Matching refs:colors
133 *colors; in ReadDPSImage() local
256 colors=(XColor *) AcquireQuantumMemory(visual_info->colormap_size, in ReadDPSImage()
257 sizeof(*colors)); in ReadDPSImage()
258 if (colors == (XColor *) NULL) in ReadDPSImage()
269 colors[i].pixel=(size_t) i; in ReadDPSImage()
270 colors[i].pad=0; in ReadDPSImage()
293 colors[i].pixel=red | green | blue; in ReadDPSImage()
294 colors[i].pad=0; in ReadDPSImage()
307 colors,visual_info->colormap_size); in ReadDPSImage()
378 SetPixelRed(image,ScaleShortToQuantum(colors[index].red),q); in ReadDPSImage()
380 SetPixelGreen(image,ScaleShortToQuantum(colors[index].green),q); in ReadDPSImage()
382 SetPixelBlue(image,ScaleShortToQuantum(colors[index].blue),q); in ReadDPSImage()
425 colors=(XColor *) RelinquishMagickMemory(colors); in ReadDPSImage()
431 for (i=0; i < (ssize_t) image->colors; i++) in ReadDPSImage()
433 image->colormap[colors[i].pixel].red=ScaleShortToQuantum(colors[i].red); in ReadDPSImage()
434 image->colormap[colors[i].pixel].green= in ReadDPSImage()
435 ScaleShortToQuantum(colors[i].green); in ReadDPSImage()
436 image->colormap[colors[i].pixel].blue= in ReadDPSImage()
437 ScaleShortToQuantum(colors[i].blue); in ReadDPSImage()
460 colors=(XColor *) RelinquishMagickMemory(colors); in ReadDPSImage()