Lines Matching refs:colormap
50 #include "MagickCore/colormap.h"
51 #include "MagickCore/colormap-private.h"
88 % ReadMAPImage() reads an image of raw RGB colormap and colormap index
136 *colormap,
171 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,packet_size*
172 sizeof(*colormap));
174 (colormap == (unsigned char *) NULL))
177 Read image colormap.
179 count=ReadBlob(image,packet_size*image->colors,colormap);
182 p=colormap;
186 image->colormap[i].red=ScaleCharToQuantum(*p++);
187 image->colormap[i].green=ScaleCharToQuantum(*p++);
188 image->colormap[i].blue=ScaleCharToQuantum(*p++);
195 image->colormap[i].red=(Quantum) quantum;
198 image->colormap[i].green=(Quantum) quantum;
201 image->colormap[i].blue=(Quantum) quantum;
203 colormap=(unsigned char *) RelinquishMagickMemory(colormap);
236 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
279 entry=AcquireMagickInfo("MAP","MAP","Colormap intensities and indices");
328 % colormap bytes followed by the colormap indexes.
368 *colormap,
387 Allocate colormap.
396 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,packet_size*
397 sizeof(*colormap));
399 (colormap == (unsigned char *) NULL))
402 Write colormap to file.
404 q=colormap;
408 *q++=(unsigned char) image->colormap[i].red;
409 *q++=(unsigned char) image->colormap[i].green;
410 *q++=(unsigned char) image->colormap[i].blue;
415 *q++=(unsigned char) ((size_t) image->colormap[i].red >> 8);
416 *q++=(unsigned char) image->colormap[i].red;
417 *q++=(unsigned char) ((size_t) image->colormap[i].green >> 8);
418 *q++=(unsigned char) image->colormap[i].green;
419 *q++=(unsigned char) ((size_t) image->colormap[i].blue >> 8);
420 *q++=(unsigned char) image->colormap[i].blue;
422 (void) WriteBlob(image,packet_size*image->colors,colormap);
423 colormap=(unsigned char *) RelinquishMagickMemory(colormap);