Lines Matching refs:colormap
50 #include "MagickCore/colormap.h"
51 #include "MagickCore/colormap-private.h"
169 % o opacity: The colormap index associated with the transparent color.
449 SetPixelViaPixelInfo(image,image->colormap+index,q);
1273 Inititialize colormap.
1283 Use global colormap.
1288 image->colormap[i].red=(double) ScaleCharToQuantum(*p++);
1289 image->colormap[i].green=(double) ScaleCharToQuantum(*p++);
1290 image->colormap[i].blue=(double) ScaleCharToQuantum(*p++);
1293 image->colormap[i].alpha=(double) TransparentAlpha;
1294 image->transparent_color=image->colormap[opacity];
1297 image->background_color=image->colormap[MagickMin((ssize_t) background,
1303 *colormap;
1306 Read local colormap.
1308 colormap=(unsigned char *) AcquireQuantumMemory(image->colors,3*
1309 sizeof(*colormap));
1310 if (colormap == (unsigned char *) NULL)
1316 count=ReadBlob(image,(3*image->colors)*sizeof(*colormap),colormap);
1321 colormap=(unsigned char *) RelinquishMagickMemory(colormap);
1325 p=colormap;
1328 image->colormap[i].red=(double) ScaleCharToQuantum(*p++);
1329 image->colormap[i].green=(double) ScaleCharToQuantum(*p++);
1330 image->colormap[i].blue=(double) ScaleCharToQuantum(*p++);
1332 image->colormap[i].alpha=(double) TransparentAlpha;
1334 colormap=(unsigned char *) RelinquishMagickMemory(colormap);
1339 if (IsPixelInfoGray(image->colormap+i) == MagickFalse)
1520 *colormap,
1538 Allocate colormap.
1542 colormap=(unsigned char *) AcquireQuantumMemory(768UL,sizeof(*colormap));
1544 (colormap == (unsigned char *) NULL))
1547 colormap[i]=(unsigned char) 0;
1596 Identify transparent colormap index.
1601 if (image->colormap[i].alpha != OpaqueAlpha)
1608 alpha=fabs(image->colormap[i].alpha-TransparentAlpha);
1609 beta=fabs(image->colormap[opacity].alpha-TransparentAlpha);
1617 if (image->colormap[i].alpha != OpaqueAlpha)
1624 alpha=fabs(image->colormap[i].alpha-TransparentAlpha);
1625 beta=fabs(image->colormap[opacity].alpha-TransparentAlpha);
1632 image->colormap[opacity].red=image->transparent_color.red;
1633 image->colormap[opacity].green=image->transparent_color.green;
1634 image->colormap[opacity].blue=image->transparent_color.blue;
1642 q=colormap;
1645 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].red));
1646 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].green));
1647 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].blue));
1659 Write global colormap.
1663 c|=(bits_per_pixel-1); /* size of global colormap */
1666 if (IsPixelInfoEquivalent(&image->background_color,image->colormap+j))
1672 (void) WriteBlob(image,length,colormap);
1674 global_colormap[j]=colormap[j];
1874 if (colormap[j] != global_colormap[j])
1881 c|=(bits_per_pixel-1); /* size of local colormap */
1884 (void) WriteBlob(image,length,colormap);
1897 colormap=(unsigned char *) RelinquishMagickMemory(colormap);
1913 colormap=(unsigned char *) RelinquishMagickMemory(colormap);