Lines Matching refs:pixel
19 % MagickWand Image Pixel Wand Methods %
53 #include "MagickWand/pixel-wand-private.h"
78 pixel;
110 % o wand: the pixel wand.
120 wand->pixel.colorspace=sRGBColorspace;
166 clone_wand->pixel=wand->pixel;
240 % o wand: the pixel wand.
269 % pixel wands.
278 % o wand: the pixel wand.
322 % o p: the pixel wand.
324 % o q: the pixel wand.
341 p->pixel.fuzz=fuzz;
342 q->pixel.fuzz=fuzz;
343 return(IsFuzzyEquivalencePixelInfo(&p->pixel,&q->pixel));
358 % IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.
392 % NewPixelWand() returns a new pixel wand.
423 GetPixelInfo((Image *) NULL,&wand->pixel);
443 % NewPixelWands() returns an array of pixel wands.
492 % o wand: the pixel wand.
517 % PixelGetAlpha() returns the normalized alpha value of the pixel wand.
525 % o wand: the pixel wand.
534 return((double) QuantumScale*wand->pixel.alpha);
549 % PixelGetAlphaQuantum() returns the alpha value of the pixel wand.
557 % o wand: the pixel wand.
566 return(ClampToQuantum(wand->pixel.alpha));
581 % PixelGetBlack() returns the normalized black color of the pixel wand.
589 % o wand: the pixel wand.
598 return((double) QuantumScale*wand->pixel.black);
613 % PixelGetBlackQuantum() returns the black color of the pixel wand.
621 % o wand: the pixel wand.
630 return(ClampToQuantum(wand->pixel.black));
645 % PixelGetBlue() returns the normalized blue color of the pixel wand.
653 % o wand: the pixel wand.
662 return((double) QuantumScale*wand->pixel.blue);
677 % PixelGetBlueQuantum() returns the blue color of the pixel wand.
685 % o wand: the pixel wand.
694 return(ClampToQuantum(wand->pixel.blue));
709 % PixelGetColorAsString() returnsd the color of the pixel wand as a string.
717 % o wand: the pixel wand.
726 pixel;
732 pixel=wand->pixel;
734 GetColorTuple(&pixel,MagickFalse,color);
750 % PixelGetColorAsNormalizedString() returns the normalized color of the pixel
759 % o wand: the pixel wand.
772 (QuantumScale*wand->pixel.red),(double) (QuantumScale*wand->pixel.green),
773 (double) (QuantumScale*wand->pixel.blue));
774 if (wand->pixel.colorspace == CMYKColorspace)
776 (double) (QuantumScale*wand->pixel.black));
777 if (wand->pixel.alpha_trait != UndefinedPixelTrait)
779 (double) (QuantumScale*wand->pixel.alpha));
803 % o wand: the pixel wand.
827 % PixelGetCyan() returns the normalized cyan color of the pixel wand.
835 % o wand: the pixel wand.
844 return((double) QuantumScale*wand->pixel.red);
859 % PixelGetCyanQuantum() returns the cyan color of the pixel wand.
867 % o wand: the pixel wand.
876 return(ClampToQuantum(wand->pixel.red));
900 % o wand: the pixel wand.
982 % PixelGetFuzz() returns the normalized fuzz value of the pixel wand.
990 % o wand: the pixel wand.
999 return((double) wand->pixel.fuzz);
1014 % PixelGetGreen() returns the normalized green color of the pixel wand.
1022 % o wand: the pixel wand.
1031 return((double) QuantumScale*wand->pixel.green);
1046 % PixelGetGreenQuantum() returns the green color of the pixel wand.
1054 % o wand: the pixel wand.
1063 return(ClampToQuantum(wand->pixel.green));
1078 % PixelGetHSL() returns the normalized HSL color of the pixel wand.
1087 % o wand: the pixel wand.
1089 % o hue,saturation,lightness: Return the pixel hue, saturation, and
1100 ConvertRGBToHSL((double) ClampToQuantum(wand->pixel.red),(double)
1101 ClampToQuantum(wand->pixel.green),(double) ClampToQuantum(wand->pixel.blue),
1117 % PixelGetIndex() returns the colormap index from the pixel wand.
1125 % o wand: the pixel wand.
1134 return((Quantum) wand->pixel.black);
1149 % PixelGetMagenta() returns the normalized magenta color of the pixel wand.
1157 % o wand: the pixel wand.
1166 return((double) QuantumScale*wand->pixel.green);
1181 % PixelGetMagentaQuantum() returns the magenta color of the pixel wand.
1189 % o wand: the pixel wand.
1198 return(ClampToQuantum(wand->pixel.green));
1213 % PixelGetMagickColor() gets the magick color of the pixel wand.
1221 % o wand: the pixel wand.
1223 % o color: The pixel wand color is returned here.
1234 *color=wand->pixel;
1249 % PixelGetPixel() returns the pixel wand pixel.
1257 % o wand: the pixel wand.
1266 return(wand->pixel);
1281 % PixelGetQuantumPacket() gets the packet of the pixel wand as a PixelInfo.
1289 % o wand: the pixel wand.
1291 % o packet: The pixel wand packet is returned here.
1301 packet->storage_class=wand->pixel.storage_class;
1302 packet->colorspace=wand->pixel.colorspace;
1303 packet->depth=wand->pixel.depth;
1304 packet->fuzz=wand->pixel.fuzz;
1305 packet->count=wand->pixel.count;
1306 packet->index=wand->pixel.index;
1307 packet->alpha=(double) ClampToQuantum(wand->pixel.alpha);
1308 packet->alpha_trait=wand->pixel.alpha_trait;
1309 if (wand->pixel.colorspace == CMYKColorspace)
1311 packet->red=(double) ClampToQuantum(QuantumRange-(wand->pixel.red*
1312 (QuantumRange-wand->pixel.black)+wand->pixel.black));
1313 packet->green=(double) ClampToQuantum(QuantumRange-(wand->pixel.green*
1314 (QuantumRange-wand->pixel.black)+wand->pixel.black));
1315 packet->blue=(double) ClampToQuantum(QuantumRange-(wand->pixel.blue*
1316 (QuantumRange-wand->pixel.black)+wand->pixel.black));
1317 packet->black=(double) ClampToQuantum(wand->pixel.black);
1320 packet->red=(double) ClampToQuantum(wand->pixel.red);
1321 packet->green=(double) ClampToQuantum(wand->pixel.green);
1322 packet->blue=(double) ClampToQuantum(wand->pixel.blue);
1337 % PixelGetQuantumPixel() gets the pixel of the pixel wand as a PixelInfo.
1342 % Quantum *pixel)
1346 % o wand: the pixel wand.
1348 % o pixel: The pixel wand pixel is returned here.
1352 Quantum *pixel)
1358 assert(pixel != (Quantum *) NULL);
1359 SetPixelAlpha(image,ClampToQuantum(wand->pixel.alpha),pixel);
1360 if (wand->pixel.colorspace == CMYKColorspace)
1363 (wand->pixel.red*(QuantumRange-wand->pixel.black)+wand->pixel.black)),
1364 pixel);
1366 (wand->pixel.green*(QuantumRange-wand->pixel.black)+wand->pixel.black)),
1367 pixel);
1369 (wand->pixel.blue*(QuantumRange-wand->pixel.black)+wand->pixel.black)),
1370 pixel);
1371 SetPixelBlack(image,ClampToQuantum(wand->pixel.black),pixel);
1374 SetPixelRed(image,ClampToQuantum(wand->pixel.red),pixel);
1375 SetPixelGreen(image,ClampToQuantum(wand->pixel.green),pixel);
1376 SetPixelBlue(image,ClampToQuantum(wand->pixel.blue),pixel);
1391 % PixelGetRed() returns the normalized red color of the pixel wand.
1399 % o wand: the pixel wand.
1408 return((double) QuantumScale*wand->pixel.red);
1423 % PixelGetRedQuantum() returns the red color of the pixel wand.
1431 % o wand: the pixel wand.
1440 return(ClampToQuantum(wand->pixel.red));
1455 % PixelGetYellow() returns the normalized yellow color of the pixel wand.
1463 % o wand: the pixel wand.
1472 return((double) QuantumScale*wand->pixel.blue);
1487 % PixelGetYellowQuantum() returns the yellow color of the pixel wand.
1495 % o wand: the pixel wand.
1504 return(ClampToQuantum(wand->pixel.blue));
1519 % PixelSetAlpha() sets the normalized alpha value of the pixel wand.
1527 % o wand: the pixel wand.
1539 wand->pixel.alpha=(double) ClampToQuantum(QuantumRange*alpha);
1554 % PixelSetAlphaQuantum() sets the alpha value of the pixel wand.
1562 % o wand: the pixel wand.
1573 wand->pixel.alpha=(double) alpha;
1588 % PixelSetBlack() sets the normalized black color of the pixel wand.
1596 % o wand: the pixel wand.
1607 wand->pixel.black=(double) ClampToQuantum(QuantumRange*black);
1622 % PixelSetBlackQuantum() sets the black color of the pixel wand.
1630 % o wand: the pixel wand.
1641 wand->pixel.black=(double) black;
1656 % PixelSetBlue() sets the normalized blue color of the pixel wand.
1664 % o wand: the pixel wand.
1675 wand->pixel.blue=(double) ClampToQuantum(QuantumRange*blue);
1690 % PixelSetBlueQuantum() sets the blue color of the pixel wand.
1698 % o wand: the pixel wand.
1709 wand->pixel.blue=(double) blue;
1724 % PixelSetColor() sets the color of the pixel wand with a string (e.g.
1733 % o wand: the pixel wand.
1735 % o color: the pixel wand color.
1744 pixel;
1750 status=QueryColorCompliance(color,AllCompliance,&pixel,wand->exception);
1752 wand->pixel=pixel;
1768 % PixelSetColorCount() sets the color count of the pixel wand.
1776 % o wand: the pixel wand.
1802 % PixelSetColorFromWand() sets the color of the pixel wand.
1810 % o wand: the pixel wand.
1812 % o color: set the pixel wand color here.
1822 wand->pixel=color->pixel;
1837 % PixelSetCyan() sets the normalized cyan color of the pixel wand.
1845 % o wand: the pixel wand.
1856 wand->pixel.red=(double) ClampToQuantum(QuantumRange*cyan);
1871 % PixelSetCyanQuantum() sets the cyan color of the pixel wand.
1879 % o wand: the pixel wand.
1890 wand->pixel.red=(double) cyan;
1905 % PixelSetFuzz() sets the fuzz value of the pixel wand.
1913 % o wand: the pixel wand.
1924 wand->pixel.fuzz=(double) fuzz;
1939 % PixelSetGreen() sets the normalized green color of the pixel wand.
1947 % o wand: the pixel wand.
1958 wand->pixel.green=(double) ClampToQuantum(QuantumRange*green);
1973 % PixelSetGreenQuantum() sets the green color of the pixel wand.
1981 % o wand: the pixel wand.
1992 wand->pixel.green=(double) green;
2007 % PixelSetHSL() sets the normalized HSL color of the pixel wand.
2016 % o wand: the pixel wand.
2018 % o hue,saturation,lightness: Return the pixel hue, saturation, and
2035 wand->pixel.red=(double) red;
2036 wand->pixel.green=(double) green;
2037 wand->pixel.blue=(double) blue;
2052 % PixelSetIndex() sets the colormap index of the pixel wand.
2060 % o wand: the pixel wand.
2071 wand->pixel.index=(double) index;
2086 % PixelSetMagenta() sets the normalized magenta color of the pixel wand.
2094 % o wand: the pixel wand.
2105 wand->pixel.green=(double) ClampToQuantum(QuantumRange*magenta);
2120 % PixelSetMagentaQuantum() sets the magenta color of the pixel wand.
2129 % o wand: the pixel wand.
2140 wand->pixel.green=(double) magenta;
2155 % PixelSetPixelColor() sets the color of the pixel wand.
2163 % o wand: the pixel wand.
2165 % o color: the pixel wand color.
2175 wand->pixel=(*color);
2190 % PixelSetQuantumPixel() sets the pixel of the pixel wand.
2194 % void PixelSetQuantumPixel(const Image *image,const Quantum *pixel,
2199 % o wand: the pixel wand.
2201 % o pixel: the pixel wand pixel.
2204 WandExport void PixelSetQuantumPixel(const Image *image,const Quantum *pixel,
2211 assert(pixel != (Quantum *) NULL);
2212 wand->pixel.red=(double) GetPixelRed(image,pixel);
2213 wand->pixel.green=(double) GetPixelGreen(image,pixel);
2214 wand->pixel.blue=(double) GetPixelBlue(image,pixel);
2215 wand->pixel.black=(double) GetPixelBlack(image,pixel);
2216 wand->pixel.alpha=(double) GetPixelAlpha(image,pixel);
2217 wand->pixel.alpha_trait=GetPixelAlpha(image,pixel) != OpaqueAlpha ?
2233 % PixelSetRed() sets the normalized red color of the pixel wand.
2241 % o wand: the pixel wand.
2252 wand->pixel.red=(double) ClampToQuantum(QuantumRange*red);
2267 % PixelSetRedQuantum() sets the red color of the pixel wand.
2275 % o wand: the pixel wand.
2286 wand->pixel.red=(double) red;
2301 % PixelSetYellow() sets the normalized yellow color of the pixel wand.
2309 % o wand: the pixel wand.
2320 wand->pixel.blue=(double) ClampToQuantum(QuantumRange*yellow);
2335 % PixelSetYellowQuantum() sets the yellow color of the pixel wand.
2343 % o wand: the pixel wand.
2354 wand->pixel.blue=(double) yellow;