Lines Matching refs:pixel
68 #include "MagickCore/pixel.h"
69 #include "MagickCore/pixel-accessor.h"
194 size_t *length,PixelInfo *pixel,ExceptionInfo *exception)
202 pixel->index=0;
207 pixel->index=ConstrainColormapIndex(image,((size_t) *p << 24) |
215 pixel->index=ConstrainColormapIndex(image,(*p << 8) | *(p+1),
222 pixel->index=ConstrainColormapIndex(image,*p,exception);
240 pixel->alpha=ScaleCharToQuantum(quantum);
252 pixel->alpha=(Quantum) (quantum >> (image->depth-
265 pixel->alpha=(Quantum) (quantum >> (image->depth-
285 pixel->red=ScaleCharToQuantum(quantum);
286 pixel->green=pixel->red;
287 pixel->blue=pixel->red;
291 pixel->green=ScaleCharToQuantum(quantum);
293 pixel->blue=ScaleCharToQuantum(quantum);
298 pixel->black=ScaleCharToQuantum(quantum);
303 pixel->alpha=ScaleCharToQuantum(quantum);
313 pixel->red=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
314 pixel->green=pixel->red;
315 pixel->blue=pixel->red;
319 pixel->green=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
321 pixel->blue=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
326 pixel->black=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
331 pixel->alpha=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
341 pixel->red=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
342 pixel->green=pixel->red;
343 pixel->blue=pixel->red;
347 pixel->green=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
349 pixel->blue=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
354 pixel->black=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
359 pixel->alpha=quantum >> (image->depth-MAGICKCORE_QUANTUM_DEPTH);
442 pixel;
882 if (LocaleCompare(keyword,"pixel-intensity") == 0)
1194 pixel;
1198 p=PushCharPixel(p,&pixel);
1199 image->colormap[i].red=ScaleCharToQuantum(pixel);
1200 p=PushCharPixel(p,&pixel);
1201 image->colormap[i].green=ScaleCharToQuantum(pixel);
1202 p=PushCharPixel(p,&pixel);
1203 image->colormap[i].blue=ScaleCharToQuantum(pixel);
1210 pixel;
1214 p=PushShortPixel(MSBEndian,p,&pixel);
1215 image->colormap[i].red=ScaleShortToQuantum(pixel);
1216 p=PushShortPixel(MSBEndian,p,&pixel);
1217 image->colormap[i].green=ScaleShortToQuantum(pixel);
1218 p=PushShortPixel(MSBEndian,p,&pixel);
1219 image->colormap[i].blue=ScaleShortToQuantum(pixel);
1226 pixel;
1230 p=PushLongPixel(MSBEndian,p,&pixel);
1231 image->colormap[i].red=ScaleLongToQuantum(pixel);
1232 p=PushLongPixel(MSBEndian,p,&pixel);
1233 image->colormap[i].green=ScaleLongToQuantum(pixel);
1234 p=PushLongPixel(MSBEndian,p,&pixel);
1235 image->colormap[i].blue=ScaleLongToQuantum(pixel);
1304 GetPixelInfo(image,&pixel);
1509 PushRunlengthPacket(image,pixels,&length,&pixel,exception);
1513 SetPixelIndex(image,ClampToQuantum(pixel.index),q);
1516 SetPixelRed(image,ClampToQuantum(pixel.red),q);
1517 SetPixelGreen(image,ClampToQuantum(pixel.green),q);
1518 SetPixelBlue(image,ClampToQuantum(pixel.blue),q);
1520 SetPixelBlack(image,ClampToQuantum(pixel.black),q);
1523 SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q);
1758 size_t length,PixelInfo *pixel,ExceptionInfo *exception)
1765 value=(unsigned int) ClampToQuantum(pixel->index);
1793 value=ScaleQuantumToLong(ClampToQuantum(pixel->alpha));
1805 value=ScaleQuantumToShort(ClampToQuantum(pixel->alpha));
1818 pixel->alpha));
1837 value=ScaleQuantumToLong(ClampToQuantum(pixel->red));
1841 value=ScaleQuantumToLong(ClampToQuantum(pixel->green));
1843 value=ScaleQuantumToLong(ClampToQuantum(pixel->blue));
1848 value=ScaleQuantumToLong(ClampToQuantum(pixel->black));
1853 value=ScaleQuantumToLong(ClampToQuantum(pixel->alpha));
1863 value=ScaleQuantumToShort(ClampToQuantum(pixel->red));
1867 value=ScaleQuantumToShort(ClampToQuantum(pixel->green));
1869 value=ScaleQuantumToShort(ClampToQuantum(pixel->blue));
1874 value=ScaleQuantumToShort(ClampToQuantum(pixel->black));
1879 value=ScaleQuantumToShort(ClampToQuantum(pixel->alpha));
1889 value=(unsigned char) ScaleQuantumToChar(ClampToQuantum(pixel->red));
1894 pixel->green));
1896 value=(unsigned char) ScaleQuantumToChar(ClampToQuantum(pixel->blue));
1902 pixel->black));
1908 pixel->alpha));
1955 pixel,
2096 "pixel-intensity=%s\n",CommandOptionToMnemonic(
2369 pixel;
2371 pixel=ScaleQuantumToLong(image->colormap[i].red);
2372 q=PopLongPixel(MSBEndian,pixel,q);
2373 pixel=ScaleQuantumToLong(image->colormap[i].green);
2374 q=PopLongPixel(MSBEndian,pixel,q);
2375 pixel=ScaleQuantumToLong(image->colormap[i].blue);
2376 q=PopLongPixel(MSBEndian,pixel,q);
2382 pixel;
2384 pixel=ScaleQuantumToShort(image->colormap[i].red);
2385 q=PopShortPixel(MSBEndian,pixel,q);
2386 pixel=ScaleQuantumToShort(image->colormap[i].green);
2387 q=PopShortPixel(MSBEndian,pixel,q);
2388 pixel=ScaleQuantumToShort(image->colormap[i].blue);
2389 q=PopShortPixel(MSBEndian,pixel,q);
2395 pixel;
2397 pixel=(unsigned char) ScaleQuantumToChar(image->colormap[i].red);
2398 q=PopCharPixel(pixel,q);
2399 pixel=(unsigned char) ScaleQuantumToChar(
2401 q=PopCharPixel(pixel,q);
2402 pixel=(unsigned char) ScaleQuantumToChar(image->colormap[i].blue);
2403 q=PopCharPixel(pixel,q);
2575 GetPixelInfoPixel(image,p,&pixel);
2581 (IsPixelInfoEquivalent(&pixel,&target) != MagickFalse))
2585 q=PopRunlengthPacket(image,q,length,&pixel,exception);
2588 GetPixelInfoPixel(image,p,&pixel);
2591 q=PopRunlengthPacket(image,q,length,&pixel,exception);