Lines Matching refs:colormap
13 % MagickCore Colormap Methods %
52 #include "MagickCore/colormap.h"
87 % AcquireImageColormap() allocates an image colormap and initializes
88 % it to a linear gray colorspace. If the image already has a colormap,
101 % o colors: the number of colors in the image colormap.
113 Allocate image colormap.
120 if (image->colormap == (PixelInfo *) NULL)
121 image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors,
122 sizeof(*image->colormap));
124 image->colormap=(PixelInfo *) ResizeQuantumMemory(image->colormap,
125 image->colors,sizeof(*image->colormap));
126 if (image->colormap == (PixelInfo *) NULL)
139 GetPixelInfo(image,image->colormap+i);
140 image->colormap[i].alpha_trait=BlendPixelTrait;
141 image->colormap[i].red=pixel;
142 image->colormap[i].green=pixel;
143 image->colormap[i].blue=pixel;
144 image->colormap[i].alpha=OpaqueAlpha;
161 % CycleColormap() displaces an image's colormap by a given number of
162 % positions. If you cycle the colormap a number of times you can produce
165 % WARNING: this assumes an images colormap is in a well know and defined
177 % o displace: displace the colormap this amount.
231 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);
253 % SortColormapByIntensity() sorts the colormap of a PseudoClass image by
326 Assign index values to colormap entries.
333 image->colormap[i].alpha=(double) i;
335 Sort image colormap by decreasing color popularity.
337 qsort((void *) image->colormap,(size_t) image->colors,
338 sizeof(*image->colormap),IntensityCompare);
340 Update image colormap indexes to sorted colormap order.
346 pixels[(ssize_t) image->colormap[i].alpha]=(unsigned short) i;
370 SetPixelViaPixelInfo(image,image->colormap+(ssize_t) index,q);