13ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 23ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 33ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 43ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 53ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 63ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PPPP IIIII X X EEEEE L % 73ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P P I X X E L % 83ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PPPP I X EEE L % 93ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P I X X E L % 103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P IIIII X X EEEEE LLLLL % 113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% W W AAA N N DDDD % 133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% W W A A NN N D D % 143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% W W W AAAAA N N N D D % 153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% WW WW A A N NN D D % 163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% W W A A N N DDDD % 173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% MagickWand Image Pixel Wand Methods % 203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Software Design % 22de984cdc3631106b1cbbb8d3972b76a0fc27e8e8cristy% Cristy % 233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% March 2003 % 243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 267ce65e7125a4e1df1a274ce373c537a9df9c16cdCristy% Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization % 273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% dedicated to making software imaging solutions freely available. % 283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% You may not use this file except in compliance with the License. You may % 303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% obtain a copy of the License at % 313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% http://www.imagemagick.org/script/license.php % 333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Unless required by applicable law or agreed to in writing, software % 353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% distributed under the License is distributed on an "AS IS" BASIS, % 363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % 373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% See the License for the specific language governing permissions and % 383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% limitations under the License. % 393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy Include declarations. 483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 494c08aed51c5899665ade97263692328eea4af106cristy#include "MagickWand/studio.h" 504c08aed51c5899665ade97263692328eea4af106cristy#include "MagickWand/MagickWand.h" 514c08aed51c5899665ade97263692328eea4af106cristy#include "MagickWand/magick-wand-private.h" 524c08aed51c5899665ade97263692328eea4af106cristy#include "MagickWand/pixel-wand-private.h" 534c08aed51c5899665ade97263692328eea4af106cristy#include "MagickWand/wand.h" 543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy Define declarations. 573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy#define PixelWandId "PixelWand" 593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy Typedef declarations. 623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 633ed852eea50f9d4cd633efb8c2b054b8e33c253cristystruct _PixelWand 643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 65bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy size_t 663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy id; 673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy char 69151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy name[MagickPathExtent]; 703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ExceptionInfo 723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *exception; 733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 744c08aed51c5899665ade97263692328eea4af106cristy PixelInfo 753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy pixel; 763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 77bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy size_t 783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy count; 793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy MagickBooleanType 813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy debug; 823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 83bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy size_t 843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy signature; 853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy}; 863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% C l e a r P i x e l W a n d % 933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% ClearPixelWand() clears resources associated with the wand. 993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the ClearPixelWand method is: 1013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void ClearPixelWand(PixelWand *wand) 1033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 1053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 1073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 1093ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void ClearPixelWand(PixelWand *wand) 1103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 1113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (PixelWand *) NULL); 112e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 1133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 1143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ClearMagickException(wand->exception); 1167020ae6594690c03a4f73784fd41a7131a5b22c6cristy wand->pixel.colorspace=sRGBColorspace; 1173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->debug=IsEventLogging(); 1183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 1193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 1203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 1213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% C l o n e P i x e l W a n d % 1263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% ClonePixelWand() makes an exact copy of the specified wand. 1323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the ClonePixelWand method is: 1343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelWand *ClonePixelWand(const PixelWand *wand) 1363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 1383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the magick wand. 1403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 1423ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport PixelWand *ClonePixelWand(const PixelWand *wand) 1433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 1443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy PixelWand 1453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *clone_wand; 1463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 1473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (PixelWand *) NULL); 148e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 1493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 1503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 15173bd4a51b419e914565bdf204bf1540dc4c8ee26cristy clone_wand=(PixelWand *) AcquireMagickMemory(sizeof(*clone_wand)); 1523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (clone_wand == (PixelWand *) NULL) 1533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed", 1543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->name); 1553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) ResetMagickMemory(clone_wand,0,sizeof(*clone_wand)); 1563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy clone_wand->id=AcquireWandId(); 157151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy (void) FormatLocaleString(clone_wand->name,MagickPathExtent,"%s-%.20g", 158e8c25f9b4c9fb72cad6db08eeda58c7c5784014ecristy PixelWandId,(double) clone_wand->id); 1593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy clone_wand->exception=AcquireExceptionInfo(); 1603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy InheritException(clone_wand->exception,wand->exception); 1613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy clone_wand->pixel=wand->pixel; 1623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy clone_wand->count=wand->count; 1633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy clone_wand->debug=IsEventLogging(); 1643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (clone_wand->debug != MagickFalse) 1653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",clone_wand->name); 166e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy clone_wand->signature=MagickWandSignature; 1673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(clone_wand); 1683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 1693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 1703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 1713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% C l o n e P i x e l W a n d s % 1763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 1793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% ClonePixelWands() makes an exact copy of the specified wands. 1823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the ClonePixelWands method is: 1843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelWand **ClonePixelWands(const PixelWand **wands, 186bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy% const size_t number_wands) 1873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 1893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wands: the magick wands. 1913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o number_wands: the number of wands. 1933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 1953ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport PixelWand **ClonePixelWands(const PixelWand **wands, 196bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy const size_t number_wands) 1973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 198bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy register ssize_t 1993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy i; 2003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 2013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy PixelWand 2023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy **clone_wands; 2033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 2043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy clone_wands=(PixelWand **) AcquireQuantumMemory((size_t) number_wands, 2053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy sizeof(*clone_wands)); 2063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (clone_wands == (PixelWand **) NULL) 2073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed", 2083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy GetExceptionMessage(errno)); 209bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy for (i=0; i < (ssize_t) number_wands; i++) 2103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy clone_wands[i]=ClonePixelWand(wands[i]); 2113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(clone_wands); 2123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 2133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 2143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 2153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% D e s t r o y P i x e l W a n d % 2203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% DestroyPixelWand() deallocates resources associated with a PixelWand. 2263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the DestroyPixelWand method is: 2283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelWand *DestroyPixelWand(PixelWand *wand) 2303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 2323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 2343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 2363ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport PixelWand *DestroyPixelWand(PixelWand *wand) 2373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 2383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (PixelWand *) NULL); 239e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 2403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 2413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->exception=DestroyExceptionInfo(wand->exception); 243e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy wand->signature=(~MagickWandSignature); 2443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy RelinquishWandId(wand->id); 2453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand=(PixelWand *) RelinquishMagickMemory(wand); 2463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(wand); 2473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 2483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 2493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 2503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% D e s t r o y P i x e l W a n d s % 2553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% DestroyPixelWands() deallocates resources associated with an array of 2613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% pixel wands. 2623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the DestroyPixelWands method is: 2643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelWand **DestroyPixelWands(PixelWand **wand, 266bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy% const size_t number_wands) 2673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 2693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 2713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o number_wands: the number of wands. 2733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 2753ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport PixelWand **DestroyPixelWands(PixelWand **wand, 276bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy const size_t number_wands) 2773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 278bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy register ssize_t 2793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy i; 2803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 2813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (PixelWand **) NULL); 2823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(*wand != (PixelWand *) NULL); 283e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert((*wand)->signature == MagickWandSignature); 2843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if ((*wand)->debug != MagickFalse) 2853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",(*wand)->name); 286bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy for (i=(ssize_t) number_wands-1; i >= 0; i--) 2873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand[i]=DestroyPixelWand(wand[i]); 2883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand=(PixelWand **) RelinquishMagickMemory(wand); 2893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(wand); 2903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 2913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 2923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 2933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% I s P i x e l W a n d S i m i l a r % 2983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% IsPixelWandSimilar() returns MagickTrue if the distance between two 3043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% colors is less than the specified distance. 3053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the IsPixelWandSimilar method is: 3073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q, 3093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% const double fuzz) 3103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 3123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o p: the pixel wand. 3143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o q: the pixel wand. 3163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o fuzz: any two colors that are less than or equal to this distance 3183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% squared are consider similar. 3193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 3213ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q, 3223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const double fuzz) 3233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 3243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(p != (PixelWand *) NULL); 325e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(p->signature == MagickWandSignature); 3263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (p->debug != MagickFalse) 3273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",p->name); 3283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(q != (PixelWand *) NULL); 329e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(q->signature == MagickWandSignature); 3303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (q->debug != MagickFalse) 3313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",q->name); 3323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy p->pixel.fuzz=fuzz; 3333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy q->pixel.fuzz=fuzz; 3344c08aed51c5899665ade97263692328eea4af106cristy return(IsFuzzyEquivalencePixelInfo(&p->pixel,&q->pixel)); 3353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 3363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 3373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 3383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% I s P i x e l W a n d % 3433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand. 3493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the IsPixelWand method is: 3513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% MagickBooleanType IsPixelWand(const PixelWand *wand) 3533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 3553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the magick wand. 3573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 3593ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport MagickBooleanType IsPixelWand(const PixelWand *wand) 3603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 3613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand == (const PixelWand *) NULL) 3623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(MagickFalse); 363e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy if (wand->signature != MagickWandSignature) 3643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(MagickFalse); 3653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (LocaleNCompare(wand->name,PixelWandId,strlen(PixelWandId)) != 0) 3663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(MagickFalse); 3673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(MagickTrue); 3683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 3693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 3703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 3713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% N e w P i x e l W a n d % 3763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 3793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% NewPixelWand() returns a new pixel wand. 3823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the NewPixelWand method is: 3843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelWand *NewPixelWand(void) 3863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 3873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 3883ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport PixelWand *NewPixelWand(void) 3893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 3903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const char 3913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *quantum; 3923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 3933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy PixelWand 3943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *wand; 3953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 396bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy size_t 3973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy depth; 3983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 3993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy depth=MAGICKCORE_QUANTUM_DEPTH; 4003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy quantum=GetMagickQuantumDepth(&depth); 4013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (depth != MAGICKCORE_QUANTUM_DEPTH) 4023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ThrowWandFatalException(WandError,"QuantumDepthMismatch",quantum); 40373bd4a51b419e914565bdf204bf1540dc4c8ee26cristy wand=(PixelWand *) AcquireMagickMemory(sizeof(*wand)); 4043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand == (PixelWand *) NULL) 4053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed", 4063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy GetExceptionMessage(errno)); 4073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) ResetMagickMemory(wand,0,sizeof(*wand)); 4083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->id=AcquireWandId(); 409151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy (void) FormatLocaleString(wand->name,MagickPathExtent,"%s-%.20g",PixelWandId, 410e8c25f9b4c9fb72cad6db08eeda58c7c5784014ecristy (double) wand->id); 4113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->exception=AcquireExceptionInfo(); 4124c08aed51c5899665ade97263692328eea4af106cristy GetPixelInfo((Image *) NULL,&wand->pixel); 4133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->debug=IsEventLogging(); 4143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 4153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 416e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy wand->signature=MagickWandSignature; 4173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(wand); 4183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 4193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 4203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 4213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% N e w P i x e l W a n d s % 4263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% NewPixelWands() returns an array of pixel wands. 4323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the NewPixelWands method is: 4343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 435bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy% PixelWand **NewPixelWands(const size_t number_wands) 4363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 4383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o number_wands: the number of wands. 4403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 442bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristyWandExport PixelWand **NewPixelWands(const size_t number_wands) 4433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 444bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy register ssize_t 4453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy i; 4463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 4473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy PixelWand 4483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy **wands; 4493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 4503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wands=(PixelWand **) AcquireQuantumMemory((size_t) number_wands, 4513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy sizeof(*wands)); 4523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wands == (PixelWand **) NULL) 4533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed", 4543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy GetExceptionMessage(errno)); 455bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy for (i=0; i < (ssize_t) number_wands; i++) 4563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wands[i]=NewPixelWand(); 4573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(wands); 4583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 4593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 4603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 4613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l C l e a r E x c e p t i o n % 4663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelClearException() clear any exceptions associated with the iterator. 4723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelClearException method is: 4743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% MagickBooleanType PixelClearException(PixelWand *wand) 4763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 4783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 4803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 4813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 4823ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport MagickBooleanType PixelClearException(PixelWand *wand) 4833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 4843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (PixelWand *) NULL); 485e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 4863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 4873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 4883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ClearMagickException(wand->exception); 4893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(MagickTrue); 4903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 4913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 4923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 4933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t A l p h a % 4983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 4993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 50313fdc36a4740731cfece669eb94956cd5eb81999cristy% PixelGetAlpha() returns the normalized alpha value of the pixel wand. 5043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetAlpha method is: 5063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetAlpha(const PixelWand *wand) 5083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 5103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 5123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 5143ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetAlpha(const PixelWand *wand) 5153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 5163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 517e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 5183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 5193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 5204c08aed51c5899665ade97263692328eea4af106cristy return((double) QuantumScale*wand->pixel.alpha); 5213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 5223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 5233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 5243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t A l p h a Q u a n t u m % 5293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetAlphaQuantum() returns the alpha value of the pixel wand. 5353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetAlphaQuantum method is: 5373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetAlphaQuantum(const PixelWand *wand) 5393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 5413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 5433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 5453ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetAlphaQuantum(const PixelWand *wand) 5463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 5473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 548e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 5493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 5503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 5514c08aed51c5899665ade97263692328eea4af106cristy return(ClampToQuantum(wand->pixel.alpha)); 5523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 5533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 5543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 5553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t B l a c k % 5603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetBlack() returns the normalized black color of the pixel wand. 5663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetBlack method is: 5683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetBlack(const PixelWand *wand) 5703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 5723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 5743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 5763ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetBlack(const PixelWand *wand) 5773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 5783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 579e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 5803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 5813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 5824c08aed51c5899665ade97263692328eea4af106cristy return((double) QuantumScale*wand->pixel.black); 5833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 5843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 5853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 5863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t B l a c k Q u a n t u m % 5913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 5943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 5953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetBlackQuantum() returns the black color of the pixel wand. 5973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 5983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetBlackQuantum method is: 5993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetBlackQuantum(const PixelWand *wand) 6013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 6033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 6053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 6073ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetBlackQuantum(const PixelWand *wand) 6083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 6093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 610e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 6113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 6123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 6134c08aed51c5899665ade97263692328eea4af106cristy return(ClampToQuantum(wand->pixel.black)); 6143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 6153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 6163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 6173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t B l u e % 6223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetBlue() returns the normalized blue color of the pixel wand. 6283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetBlue method is: 6303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetBlue(const PixelWand *wand) 6323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 6343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 6363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 6383ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetBlue(const PixelWand *wand) 6393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 6403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 641e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 6423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 6433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 6443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return((double) QuantumScale*wand->pixel.blue); 6453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 6463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 6473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 6483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t B l u e Q u a n t u m % 6533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetBlueQuantum() returns the blue color of the pixel wand. 6593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetBlueQuantum method is: 6613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetBlueQuantum(const PixelWand *wand) 6633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 6653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 6673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 6693ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetBlueQuantum(const PixelWand *wand) 6703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 6713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 672e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 6733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 6743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 675ce70c17bb6433add2eb069515a4f3105989e0662cristy return(ClampToQuantum(wand->pixel.blue)); 6763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 6773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 6783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 6793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t C o l o r A s S t r i n g % 6843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 6873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetColorAsString() returnsd the color of the pixel wand as a string. 6903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetColorAsString method is: 6923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% char *PixelGetColorAsString(PixelWand *wand) 6943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 6963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 6983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 6993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 7003ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport char *PixelGetColorAsString(const PixelWand *wand) 7013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 7023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy char 7033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *color; 7043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 7054c08aed51c5899665ade97263692328eea4af106cristy PixelInfo 7063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy pixel; 7073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 7083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 709e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 7103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 7113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 7123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy pixel=wand->pixel; 7133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy color=AcquireString((const char *) NULL); 7143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy GetColorTuple(&pixel,MagickFalse,color); 7153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(color); 7163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 7173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 7183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 7193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 7203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t C o l o r A s N o r m a l i z e d S t r i n g % 7243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 7283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetColorAsNormalizedString() returns the normalized color of the pixel 7303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% wand as a string. 7313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetColorAsNormalizedString method is: 7333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% char *PixelGetColorAsNormalizedString(PixelWand *wand) 7353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 7373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 7393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 7413ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport char *PixelGetColorAsNormalizedString(const PixelWand *wand) 7423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 7433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy char 744151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy color[2*MagickPathExtent]; 7453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 7463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 747e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 7483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 7493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 750fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy (void) FormatLocaleString(color,MagickPathExtent,"%g,%g,%g",(double) 751fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy (QuantumScale*wand->pixel.red),(double) (QuantumScale*wand->pixel.green), 7523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (double) (QuantumScale*wand->pixel.blue)); 7533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->pixel.colorspace == CMYKColorspace) 754151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy (void) FormatLocaleString(color+strlen(color),MagickPathExtent,",%g", 7554c08aed51c5899665ade97263692328eea4af106cristy (double) (QuantumScale*wand->pixel.black)); 7567d6d3d842e19316bdf35c69a032cd77a40f476aacristy if (wand->pixel.alpha_trait != UndefinedPixelTrait) 757151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy (void) FormatLocaleString(color+strlen(color),MagickPathExtent,",%g", 7584c08aed51c5899665ade97263692328eea4af106cristy (double) (QuantumScale*wand->pixel.alpha)); 7593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(ConstantString(color)); 7603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 7613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 7623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 7633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 7643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t C o l o r C o u n t % 7683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 7723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetColorCount() returns the color count associated with this color. 7743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetColorCount method is: 7763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 777bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy% size_t PixelGetColorCount(const PixelWand *wand) 7783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 7803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 7823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 7833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 784bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristyWandExport size_t PixelGetColorCount(const PixelWand *wand) 7853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 7863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 787e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 7883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 7893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 7903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(wand->count); 7913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 7923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 7933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 7943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 7953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 7983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t C y a n % 7993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 8033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetCyan() returns the normalized cyan color of the pixel wand. 8053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetCyan method is: 8073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetCyan(const PixelWand *wand) 8093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 8113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 8133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 8153ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetCyan(const PixelWand *wand) 8163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 8173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 818e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 8193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 8203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 8213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return((double) QuantumScale*wand->pixel.red); 8223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 8233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 8243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 8253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 8263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t C y a n Q u a n t u m % 8303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 8343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetCyanQuantum() returns the cyan color of the pixel wand. 8363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetCyanQuantum method is: 8383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetCyanQuantum(const PixelWand *wand) 8403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 8423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 8443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 8463ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetCyanQuantum(const PixelWand *wand) 8473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 8483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 849e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 8503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 8513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 852ce70c17bb6433add2eb069515a4f3105989e0662cristy return(ClampToQuantum(wand->pixel.red)); 8533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 8543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 8553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 8563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 8573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t E x c e p t i o n % 8613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 8643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 8653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetException() returns the severity, reason, and description of any 8673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% error that occurs when using other methods in this API. 8683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetException method is: 8703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% char *PixelGetException(const PixelWand *wand,ExceptionType *severity) 8723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 8743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 8763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o severity: the severity of the error is returned here. 8783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 8793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 8803ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport char *PixelGetException(const PixelWand *wand, 8813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ExceptionType *severity) 8823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 8833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy char 8843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *description; 8853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 8863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 887e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 8883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 8893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 8903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(severity != (ExceptionType *) NULL); 8913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *severity=wand->exception->severity; 892151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy description=(char *) AcquireQuantumMemory(2UL*MagickPathExtent, 8933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy sizeof(*description)); 8943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (description == (char *) NULL) 8953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed", 8963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->name); 8973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *description='\0'; 8983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->exception->reason != (char *) NULL) 8993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) CopyMagickString(description,GetLocaleExceptionMessage( 900151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy wand->exception->severity,wand->exception->reason),MagickPathExtent); 9013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->exception->description != (char *) NULL) 9023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 903151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy (void) ConcatenateMagickString(description," (",MagickPathExtent); 9043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) ConcatenateMagickString(description,GetLocaleExceptionMessage( 905fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy wand->exception->severity,wand->exception->description), 906fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy MagickPathExtent); 907151b66dffc9e3c2e8c4f8cdaca37ff987ca0f497cristy (void) ConcatenateMagickString(description,")",MagickPathExtent); 9083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 9093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(description); 9103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 9113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 9123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 9133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 9143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t E x c e p t i o n T y p e % 9183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 9223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetExceptionType() the exception type associated with the wand. If 9243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% no exception has occurred, UndefinedExceptionType is returned. 9253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetExceptionType method is: 9273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% ExceptionType PixelGetExceptionType(const PixelWand *wand) 9293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 9313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the magick wand. 9333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 9353ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport ExceptionType PixelGetExceptionType(const PixelWand *wand) 9363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 9373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 938e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 9393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 9403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 9413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return(wand->exception->severity); 9423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 9433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 9443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 9453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 9463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t F u z z % 9503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 9543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetFuzz() returns the normalized fuzz value of the pixel wand. 9563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetFuzz method is: 9583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetFuzz(const PixelWand *wand) 9603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 9623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 9643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 9663ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetFuzz(const PixelWand *wand) 9673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 9683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 969e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 9703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 9713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 9723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return((double) wand->pixel.fuzz); 9733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 9743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 9753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 9763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 9773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t G r e e n % 9813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 9843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 9853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetGreen() returns the normalized green color of the pixel wand. 9873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetGreen method is: 9893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetGreen(const PixelWand *wand) 9913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 9933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 9953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 9963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 9973ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetGreen(const PixelWand *wand) 9983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 9993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1000e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 10013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 10023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 10033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return((double) QuantumScale*wand->pixel.green); 10043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 10053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 10063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 10073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t G r e e n Q u a n t u m % 10123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetGreenQuantum() returns the green color of the pixel wand. 10183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetGreenQuantum method is: 10203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetGreenQuantum(const PixelWand *wand) 10223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 10243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 10263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 10283ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetGreenQuantum(const PixelWand *wand) 10293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 10303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1031e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 10323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 10333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1034ce70c17bb6433add2eb069515a4f3105989e0662cristy return(ClampToQuantum(wand->pixel.green)); 10353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 10363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 10373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 10383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t H S L % 10433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetHSL() returns the normalized HSL color of the pixel wand. 10493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetHSL method is: 10513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelGetHSL(const PixelWand *wand,double *hue,double *saturation, 10533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double *lightness) 10543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 10563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 10583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o hue,saturation,lightness: Return the pixel hue, saturation, and 10603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% brightness. 10613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 10633ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelGetHSL(const PixelWand *wand,double *hue, 10643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy double *saturation,double *lightness) 10653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 10663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1067e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 10683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 10693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 10700a39a5c567fca70403bc431d18890e89fc253eefcristy ConvertRGBToHSL((double) ClampToQuantum(wand->pixel.red),(double) 1071e42f658533644aecb733785ffd91b286d6778deacristy ClampToQuantum(wand->pixel.green),(double) ClampToQuantum(wand->pixel.blue), 1072e42f658533644aecb733785ffd91b286d6778deacristy hue,saturation,lightness); 10733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 10743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 10753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 10763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t I n d e x % 10813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 10843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetIndex() returns the colormap index from the pixel wand. 10873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetIndex method is: 10893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10904c08aed51c5899665ade97263692328eea4af106cristy% Quantum PixelGetIndex(const PixelWand *wand) 10913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 10933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 10953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 10963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 10974c08aed51c5899665ade97263692328eea4af106cristyWandExport Quantum PixelGetIndex(const PixelWand *wand) 10983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 10993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1100e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 11013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 11023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 11034c08aed51c5899665ade97263692328eea4af106cristy return((Quantum) wand->pixel.black); 11043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 11053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 11063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 11073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t M a g e n t a % 11123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetMagenta() returns the normalized magenta color of the pixel wand. 11183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetMagenta method is: 11203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetMagenta(const PixelWand *wand) 11223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 11243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 11263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 11283ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetMagenta(const PixelWand *wand) 11293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 11303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1131e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 11323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 11333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 11343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return((double) QuantumScale*wand->pixel.green); 11353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 11363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 11373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 11383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t M a g e n t a Q u a n t u m % 11433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetMagentaQuantum() returns the magenta color of the pixel wand. 11493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetMagentaQuantum method is: 11513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetMagentaQuantum(const PixelWand *wand) 11533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 11553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 11573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 11593ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetMagentaQuantum(const PixelWand *wand) 11603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 11613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1162e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 11633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 11643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1165ce70c17bb6433add2eb069515a4f3105989e0662cristy return(ClampToQuantum(wand->pixel.green)); 11663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 11673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 11683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 11693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11739e1d53f660d52fc1248f9bd4e0fbbe2fd3c2fd10cristy% P i x e l G e t M a g i c k C o l o r % 11743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 11773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetMagickColor() gets the magick color of the pixel wand. 11803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetMagickColor method is: 11823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11834c08aed51c5899665ade97263692328eea4af106cristy% void PixelGetMagickColor(PixelWand *wand,PixelInfo *color) 11843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 11863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 11883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o color: The pixel wand color is returned here. 11903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 11913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 11923ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelGetMagickColor(const PixelWand *wand, 11934c08aed51c5899665ade97263692328eea4af106cristy PixelInfo *color) 11943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 11953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1196e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 11973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 11983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 11994c08aed51c5899665ade97263692328eea4af106cristy assert(color != (PixelInfo *) NULL); 12003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy *color=wand->pixel; 12013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 12023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 12033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 12043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 12063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 12073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 120828474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% P i x e l G e t P i x e l % 120928474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% % 121028474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% % 121128474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% % 121228474bfbda5ee2d4da2eb79f299cf1f692770b99cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 121328474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% 121428474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% PixelGetPixel() returns the pixel wand pixel. 121528474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% 121628474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% The format of the PixelGetPixel method is: 121728474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% 121828474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% PixelInfo PixelGetPixel(const PixelWand *wand) 121928474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% 122028474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% A description of each parameter follows: 122128474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% 122228474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% o wand: the pixel wand. 122328474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% 122428474bfbda5ee2d4da2eb79f299cf1f692770b99cristy*/ 122528474bfbda5ee2d4da2eb79f299cf1f692770b99cristyWandExport PixelInfo PixelGetPixel(const PixelWand *wand) 122628474bfbda5ee2d4da2eb79f299cf1f692770b99cristy{ 122728474bfbda5ee2d4da2eb79f299cf1f692770b99cristy assert(wand != (const PixelWand *) NULL); 1228e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 122928474bfbda5ee2d4da2eb79f299cf1f692770b99cristy if (wand->debug != MagickFalse) 123028474bfbda5ee2d4da2eb79f299cf1f692770b99cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 123128474bfbda5ee2d4da2eb79f299cf1f692770b99cristy return(wand->pixel); 123228474bfbda5ee2d4da2eb79f299cf1f692770b99cristy} 123328474bfbda5ee2d4da2eb79f299cf1f692770b99cristy 123428474bfbda5ee2d4da2eb79f299cf1f692770b99cristy/* 123528474bfbda5ee2d4da2eb79f299cf1f692770b99cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 123628474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% % 123728474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% % 123828474bfbda5ee2d4da2eb79f299cf1f692770b99cristy% % 12394c08aed51c5899665ade97263692328eea4af106cristy% P i x e l G e t Q u a n t u m P a c k e t % 12403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 12413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 12423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 12433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1245101ab708b0574518ac5715da4d3915400e9df79acristy% PixelGetQuantumPacket() gets the packet of the pixel wand as a PixelInfo. 12463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 12474c08aed51c5899665ade97263692328eea4af106cristy% The format of the PixelGetQuantumPacket method is: 12483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1249101ab708b0574518ac5715da4d3915400e9df79acristy% void PixelGetQuantumPacket(PixelWand *wand,PixelInfo *packet) 12503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 12513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 12523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 12533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 12543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 12554c08aed51c5899665ade97263692328eea4af106cristy% o packet: The pixel wand packet is returned here. 12564c08aed51c5899665ade97263692328eea4af106cristy% 12574c08aed51c5899665ade97263692328eea4af106cristy*/ 1258101ab708b0574518ac5715da4d3915400e9df79acristyWandExport void PixelGetQuantumPacket(const PixelWand *wand,PixelInfo *packet) 12594c08aed51c5899665ade97263692328eea4af106cristy{ 12604c08aed51c5899665ade97263692328eea4af106cristy assert(wand != (const PixelWand *) NULL); 1261e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 12624c08aed51c5899665ade97263692328eea4af106cristy if (wand->debug != MagickFalse) 12634c08aed51c5899665ade97263692328eea4af106cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1264101ab708b0574518ac5715da4d3915400e9df79acristy assert(packet != (PixelInfo *) NULL); 12657bd301471cb7092caeba5727402d5d180872b03fcristy packet->storage_class=wand->pixel.storage_class; 12667bd301471cb7092caeba5727402d5d180872b03fcristy packet->colorspace=wand->pixel.colorspace; 12677243780e395bd4e966c539c4afabef83d54191fccristy packet->depth=wand->pixel.depth; 12689c450d8fcc39de0a37f20ff23c79f358719ff433cristy packet->fuzz=wand->pixel.fuzz; 1269e7770e3ea028f871f602de46a9e0fc3f084c1736cristy packet->count=wand->pixel.count; 1270e7770e3ea028f871f602de46a9e0fc3f084c1736cristy packet->index=wand->pixel.index; 1271e42f658533644aecb733785ffd91b286d6778deacristy packet->alpha=(double) ClampToQuantum(wand->pixel.alpha); 1272f2a82ee6e25411cb280db708ff26ab55cece1945cristy packet->alpha_trait=wand->pixel.alpha_trait; 12734c08aed51c5899665ade97263692328eea4af106cristy if (wand->pixel.colorspace == CMYKColorspace) 12744c08aed51c5899665ade97263692328eea4af106cristy { 1275fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy packet->red=(double) ClampToQuantum(QuantumRange-(wand->pixel.red* 1276fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy (QuantumRange-wand->pixel.black)+wand->pixel.black)); 1277fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy packet->green=(double) ClampToQuantum(QuantumRange-(wand->pixel.green* 1278fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy (QuantumRange-wand->pixel.black)+wand->pixel.black)); 1279fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy packet->blue=(double) ClampToQuantum(QuantumRange-(wand->pixel.blue* 1280fcf5a78f9ee1c00dabd419153be61b3d22cd59c0Cristy (QuantumRange-wand->pixel.black)+wand->pixel.black)); 1281e42f658533644aecb733785ffd91b286d6778deacristy packet->black=(double) ClampToQuantum(wand->pixel.black); 12824c08aed51c5899665ade97263692328eea4af106cristy return; 12834c08aed51c5899665ade97263692328eea4af106cristy } 1284e42f658533644aecb733785ffd91b286d6778deacristy packet->red=(double) ClampToQuantum(wand->pixel.red); 1285e42f658533644aecb733785ffd91b286d6778deacristy packet->green=(double) ClampToQuantum(wand->pixel.green); 1286e42f658533644aecb733785ffd91b286d6778deacristy packet->blue=(double) ClampToQuantum(wand->pixel.blue); 12874c08aed51c5899665ade97263692328eea4af106cristy} 12884c08aed51c5899665ade97263692328eea4af106cristy 12894c08aed51c5899665ade97263692328eea4af106cristy/* 12904c08aed51c5899665ade97263692328eea4af106cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12914c08aed51c5899665ade97263692328eea4af106cristy% % 12924c08aed51c5899665ade97263692328eea4af106cristy% % 12934c08aed51c5899665ade97263692328eea4af106cristy% % 12944c08aed51c5899665ade97263692328eea4af106cristy% P i x e l G e t Q u a n t u m P i x e l % 12954c08aed51c5899665ade97263692328eea4af106cristy% % 12964c08aed51c5899665ade97263692328eea4af106cristy% % 12974c08aed51c5899665ade97263692328eea4af106cristy% % 12984c08aed51c5899665ade97263692328eea4af106cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12994c08aed51c5899665ade97263692328eea4af106cristy% 1300101ab708b0574518ac5715da4d3915400e9df79acristy% PixelGetQuantumPixel() gets the pixel of the pixel wand as a PixelInfo. 13014c08aed51c5899665ade97263692328eea4af106cristy% 13024c08aed51c5899665ade97263692328eea4af106cristy% The format of the PixelGetQuantumPixel method is: 13034c08aed51c5899665ade97263692328eea4af106cristy% 13044c08aed51c5899665ade97263692328eea4af106cristy% void PixelGetQuantumPixel(const Image *image,const PixelWand *wand, 13054c08aed51c5899665ade97263692328eea4af106cristy% Quantum *pixel) 13064c08aed51c5899665ade97263692328eea4af106cristy% 13074c08aed51c5899665ade97263692328eea4af106cristy% A description of each parameter follows: 13084c08aed51c5899665ade97263692328eea4af106cristy% 13094c08aed51c5899665ade97263692328eea4af106cristy% o wand: the pixel wand. 13104c08aed51c5899665ade97263692328eea4af106cristy% 13114c08aed51c5899665ade97263692328eea4af106cristy% o pixel: The pixel wand pixel is returned here. 13123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 13144c08aed51c5899665ade97263692328eea4af106cristyWandExport void PixelGetQuantumPixel(const Image *image,const PixelWand *wand, 13154c08aed51c5899665ade97263692328eea4af106cristy Quantum *pixel) 13163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 13173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1318e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 13193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 13203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 13214c08aed51c5899665ade97263692328eea4af106cristy assert(pixel != (Quantum *) NULL); 13224c08aed51c5899665ade97263692328eea4af106cristy SetPixelAlpha(image,ClampToQuantum(wand->pixel.alpha),pixel); 13233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->pixel.colorspace == CMYKColorspace) 13243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy { 13258cd03c32d039162196906ff36501f3543019b56acristy SetPixelRed(image,ClampToQuantum(QuantumRange- 13264c08aed51c5899665ade97263692328eea4af106cristy (wand->pixel.red*(QuantumRange-wand->pixel.black)+wand->pixel.black)), 13274c08aed51c5899665ade97263692328eea4af106cristy pixel); 13288cd03c32d039162196906ff36501f3543019b56acristy SetPixelGreen(image,ClampToQuantum(QuantumRange- 13294c08aed51c5899665ade97263692328eea4af106cristy (wand->pixel.green*(QuantumRange-wand->pixel.black)+wand->pixel.black)), 13304c08aed51c5899665ade97263692328eea4af106cristy pixel); 13318cd03c32d039162196906ff36501f3543019b56acristy SetPixelBlue(image,ClampToQuantum(QuantumRange- 13324c08aed51c5899665ade97263692328eea4af106cristy (wand->pixel.blue*(QuantumRange-wand->pixel.black)+wand->pixel.black)), 13334c08aed51c5899665ade97263692328eea4af106cristy pixel); 13344c08aed51c5899665ade97263692328eea4af106cristy SetPixelBlack(image,ClampToQuantum(wand->pixel.black),pixel); 13353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return; 13363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy } 13374c08aed51c5899665ade97263692328eea4af106cristy SetPixelRed(image,ClampToQuantum(wand->pixel.red),pixel); 13384c08aed51c5899665ade97263692328eea4af106cristy SetPixelGreen(image,ClampToQuantum(wand->pixel.green),pixel); 13394c08aed51c5899665ade97263692328eea4af106cristy SetPixelBlue(image,ClampToQuantum(wand->pixel.blue),pixel); 13403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 13413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 13423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 13433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t R e d % 13483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetRed() returns the normalized red color of the pixel wand. 13543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetRed method is: 13563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetRed(const PixelWand *wand) 13583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 13603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 13623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 13643ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetRed(const PixelWand *wand) 13653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 13663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1367e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 13683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 13693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 13703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return((double) QuantumScale*wand->pixel.red); 13713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 13723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 13733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 13743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t R e d Q u a n t u m % 13793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 13823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetRedQuantum() returns the red color of the pixel wand. 13853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetRedQuantum method is: 13873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetRedQuantum(const PixelWand *wand) 13893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 13913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 13933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 13943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 13953ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetRedQuantum(const PixelWand *wand) 13963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 13973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1398e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 13993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 14003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1401ce70c17bb6433add2eb069515a4f3105989e0662cristy return(ClampToQuantum(wand->pixel.red)); 14023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 14033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 14043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 14053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t Y e l l o w % 14103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetYellow() returns the normalized yellow color of the pixel wand. 14163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetYellow method is: 14183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% double PixelGetYellow(const PixelWand *wand) 14203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 14223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 14243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 14263ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport double PixelGetYellow(const PixelWand *wand) 14273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 14283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1429e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 14303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 14313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 14323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy return((double) QuantumScale*wand->pixel.blue); 14333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 14343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 14353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 14363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l G e t Y e l l o w Q u a n t u m % 14413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelGetYellowQuantum() returns the yellow color of the pixel wand. 14473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelGetYellowQuantum method is: 14493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% Quantum PixelGetYellowQuantum(const PixelWand *wand) 14513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 14533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 14553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 14573ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport Quantum PixelGetYellowQuantum(const PixelWand *wand) 14583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 14593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1460e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 14613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 14623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1463ce70c17bb6433add2eb069515a4f3105989e0662cristy return(ClampToQuantum(wand->pixel.blue)); 14643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 14653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 14663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 14673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t A l p h a % 14723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 14753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 147713fdc36a4740731cfece669eb94956cd5eb81999cristy% PixelSetAlpha() sets the normalized alpha value of the pixel wand. 14783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetAlpha method is: 14803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetAlpha(PixelWand *wand,const double alpha) 14823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 14843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 14863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o alpha: the level of transparency: 1.0 is fully opaque and 0.0 is fully 14883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% transparent. 14893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 14903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 14913ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetAlpha(PixelWand *wand,const double alpha) 14923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 14933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1494e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 14953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 14963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1497e42f658533644aecb733785ffd91b286d6778deacristy wand->pixel.alpha=(double) ClampToQuantum(QuantumRange*alpha); 14983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 14993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 15003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 15013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t A l p h a Q u a n t u m % 15063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 151113fdc36a4740731cfece669eb94956cd5eb81999cristy% PixelSetAlphaQuantum() sets the alpha value of the pixel wand. 15123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetAlphaQuantum method is: 15143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 151513fdc36a4740731cfece669eb94956cd5eb81999cristy% void PixelSetAlphaQuantum(PixelWand *wand,const Quantum alpha) 15163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 15183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 15203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 152113fdc36a4740731cfece669eb94956cd5eb81999cristy% o alpha: the alpha value. 15223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 1524b6a294dc3cf6e0d7328c01e12a0701a6354c54d1cristyWandExport void PixelSetAlphaQuantum(PixelWand *wand,const Quantum alpha) 15253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 15263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1527e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 15283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 15293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1530a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.alpha=(double) alpha; 15313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 15323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 15333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 15343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t B l a c k % 15393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetBlack() sets the normalized black color of the pixel wand. 15453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetBlack method is: 15473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetBlack(PixelWand *wand,const double black) 15493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 15513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 15533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o black: the black color. 15553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 15573ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetBlack(PixelWand *wand,const double black) 15583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 15593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1560e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 15613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 15623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1563a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.black=(double) ClampToQuantum(QuantumRange*black); 15643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 15653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 15663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 15673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t B l a c k Q u a n t u m % 15723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 15753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetBlackQuantum() sets the black color of the pixel wand. 15783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetBlackQuantum method is: 15803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetBlackQuantum(PixelWand *wand,const Quantum black) 15823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 15843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 15863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o black: the black color. 15883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 15893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 15903ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetBlackQuantum(PixelWand *wand,const Quantum black) 15913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 15923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1593e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 15943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 15953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1596a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.black=(double) black; 15973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 15983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 15993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 16003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t B l u e % 16053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetBlue() sets the normalized blue color of the pixel wand. 16113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetBlue method is: 16133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetBlue(PixelWand *wand,const double blue) 16153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 16173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 16193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o blue: the blue color. 16213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 16233ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetBlue(PixelWand *wand,const double blue) 16243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 16253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1626e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 16273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 16283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1629a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.blue=(double) ClampToQuantum(QuantumRange*blue); 16303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 16313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 16323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 16333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t B l u e Q u a n t u m % 16383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetBlueQuantum() sets the blue color of the pixel wand. 16443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetBlueQuantum method is: 16463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue) 16483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 16503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 16523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o blue: the blue color. 16543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 16563ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue) 16573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 16583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1659e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 16603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 16613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1662a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.blue=(double) blue; 16633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 16643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 16653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 16663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t C o l o r % 16713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 16743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 16753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetColor() sets the color of the pixel wand with a string (e.g. 16773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.). 16783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetColor method is: 16803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% MagickBooleanType PixelSetColor(PixelWand *wand,const char *color) 16823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 16843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 16863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o color: the pixel wand color. 16883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 16893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 16903ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport MagickBooleanType PixelSetColor(PixelWand *wand,const char *color) 16913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 16923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy MagickBooleanType 16933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy status; 16943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 16954c08aed51c5899665ade97263692328eea4af106cristy PixelInfo 16963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy pixel; 16973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 16983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1699e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 17003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 17013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1702269c9413034627692b2a7d0a352f9dee4e8eada8cristy status=QueryColorCompliance(color,AllCompliance,&pixel,wand->exception); 17033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (status != MagickFalse) 17043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->pixel=pixel; 1705220c4d505bfb9cf557e8ec1616d7cdc0596379b8cristy return(status); 17063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 17073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 17083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 17093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t C o l o r C o u n t % 17143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetColorCount() sets the color count of the pixel wand. 17203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetColorCount method is: 17223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 1723bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristy% void PixelSetColorCount(PixelWand *wand,const size_t count) 17243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 17263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 17283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o count: the number of this particular color. 17303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 1732bb50337b2a8a16ca7e903cc04ab195ff0fd47ae6cristyWandExport void PixelSetColorCount(PixelWand *wand,const size_t count) 17333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 17343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1735e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 17363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 17373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 17383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->count=count; 17393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 17403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 17413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 17423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t C o l o r F r o m W a n d % 17473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetColorFromWand() sets the color of the pixel wand. 17533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetColorFromWand method is: 17553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17560da2c571f84e83df2e3aaa4b04c48e43b0e906f1cristy% void PixelSetColorFromWand(PixelWand *wand,const PixelWand *color) 17573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 17593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 17613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o color: set the pixel wand color here. 17633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 17653ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetColorFromWand(PixelWand *wand,const PixelWand *color) 17663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 17673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1768e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 17693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 17703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 17713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(color != (const PixelWand *) NULL); 17723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->pixel=color->pixel; 17733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 17743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 17753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 17763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t C y a n % 17813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 17843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetCyan() sets the normalized cyan color of the pixel wand. 17873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetCyan method is: 17893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetCyan(PixelWand *wand,const double cyan) 17913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 17933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 17953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o cyan: the cyan color. 17973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 17983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 17993ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetCyan(PixelWand *wand,const double cyan) 18003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 18013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1802e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 18033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 18043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1805a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.red=(double) ClampToQuantum(QuantumRange*cyan); 18063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 18073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 18083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 18093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t C y a n Q u a n t u m % 18143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetCyanQuantum() sets the cyan color of the pixel wand. 18203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetCyanQuantum method is: 18223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan) 18243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 18263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 18283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o cyan: the cyan color. 18303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 18323ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan) 18333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 18343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1835e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 18363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 18373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1838a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.red=(double) cyan; 18393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 18403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 18413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 18423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t F u z z % 18473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetFuzz() sets the fuzz value of the pixel wand. 18533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetFuzz method is: 18553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetFuzz(PixelWand *wand,const double fuzz) 18573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 18593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 18613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o fuzz: the fuzz value. 18633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 18653ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetFuzz(PixelWand *wand,const double fuzz) 18663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 18673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1868e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 18693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 18703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1871a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.fuzz=(double) fuzz; 18723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 18733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 18743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 18753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t G r e e n % 18803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 18833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetGreen() sets the normalized green color of the pixel wand. 18863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetGreen method is: 18883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetGreen(PixelWand *wand,const double green) 18903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 18923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 18943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o green: the green color. 18963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 18973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 18983ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetGreen(PixelWand *wand,const double green) 18993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 19003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1901e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 19023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 19033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1904a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.green=(double) ClampToQuantum(QuantumRange*green); 19053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 19063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 19073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 19083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t G r e e n Q u a n t u m % 19133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetGreenQuantum() sets the green color of the pixel wand. 19193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetGreenQuantum method is: 19213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetGreenQuantum(PixelWand *wand,const Quantum green) 19233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 19253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 19273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o green: the green color. 19293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 19313ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetGreenQuantum(PixelWand *wand,const Quantum green) 19323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 19333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1934e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 19353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 19363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 1937a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.green=(double) green; 19383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 19393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 19403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 19413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t H S L % 19463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetHSL() sets the normalized HSL color of the pixel wand. 19523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetHSL method is: 19543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetHSL(PixelWand *wand,const double hue, 19563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% const double saturation,const double lightness) 19573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 19593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 19613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o hue,saturation,lightness: Return the pixel hue, saturation, and 19633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% brightness. 19643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 19663ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetHSL(PixelWand *wand,const double hue, 19673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy const double saturation,const double lightness) 19683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 19693094b7f3243820cc5559d370412a9d406d074348cristy double 19703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy blue, 19713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy green, 19723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy red; 19733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 19743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 1975e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 19763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 19773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 19780a39a5c567fca70403bc431d18890e89fc253eefcristy ConvertHSLToRGB(hue,saturation,lightness,&red,&green,&blue); 1979a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.red=(double) red; 1980a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.green=(double) green; 1981a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.blue=(double) blue; 19823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 19833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 19843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 19853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t I n d e x % 19903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 19933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 19943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetIndex() sets the colormap index of the pixel wand. 19963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetIndex method is: 19983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 19994c08aed51c5899665ade97263692328eea4af106cristy% void PixelSetIndex(PixelWand *wand,const Quantum index) 20003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 20023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 20043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o index: the colormap index. 20063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 20084c08aed51c5899665ade97263692328eea4af106cristyWandExport void PixelSetIndex(PixelWand *wand,const Quantum index) 20093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 20103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2011e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 20123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 20133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2014a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.index=(double) index; 20153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 20163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 20173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 20183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 20193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20203ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t M a g e n t a % 20233ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 20273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetMagenta() sets the normalized magenta color of the pixel wand. 20293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetMagenta method is: 20313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetMagenta(PixelWand *wand,const double magenta) 20333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 20353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 20373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o magenta: the magenta color. 20393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 20413ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetMagenta(PixelWand *wand,const double magenta) 20423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 20433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2044e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 20453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 20463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2047a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.green=(double) ClampToQuantum(QuantumRange*magenta); 20483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 20493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 20503ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 20513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 20523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20533ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t M a g e n t a Q u a n t u m % 20563ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 20603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetMagentaQuantum() sets the magenta color of the pixel wand. 20623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetMagentaQuantum method is: 20643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetMagentaQuantum(PixelWand *wand, 20663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% const Quantum magenta) 20673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 20693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 20713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o magenta: the green magenta. 20733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 20743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 20753ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetMagentaQuantum(PixelWand *wand,const Quantum magenta) 20763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 20773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2078e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 20793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 20803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2081a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.green=(double) magenta; 20823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 20833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 20843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 20853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 20863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 2089f82c4a017e3711a91012dbccd159f6835435dd7fcristy% P i x e l S e t P i x e l C o l o r % 20903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 20933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 20943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2095f82c4a017e3711a91012dbccd159f6835435dd7fcristy% PixelSetPixelColor() sets the color of the pixel wand. 20963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 2097f82c4a017e3711a91012dbccd159f6835435dd7fcristy% The format of the PixelSetPixelColor method is: 20983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 209976fa3140c8390bd6c1b2ad961655b1190853d3cdcristy% void PixelSetPixelColor(PixelWand *wand,const PixelInfo *color) 21003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 21023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 21043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o color: the pixel wand color. 21063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 2108f82c4a017e3711a91012dbccd159f6835435dd7fcristyWandExport void PixelSetPixelColor(PixelWand *wand,const PixelInfo *color) 21093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 21103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2111e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 21123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 21133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 21144c08aed51c5899665ade97263692328eea4af106cristy assert(color != (const PixelInfo *) NULL); 21153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy wand->pixel=(*color); 21163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 21173ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 21183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 21193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21204c08aed51c5899665ade97263692328eea4af106cristy% % 21214c08aed51c5899665ade97263692328eea4af106cristy% % 21224c08aed51c5899665ade97263692328eea4af106cristy% % 21234c08aed51c5899665ade97263692328eea4af106cristy% P i x e l S e t Q u a n t u m P i x e l % 21244c08aed51c5899665ade97263692328eea4af106cristy% % 21254c08aed51c5899665ade97263692328eea4af106cristy% % 21264c08aed51c5899665ade97263692328eea4af106cristy% % 21274c08aed51c5899665ade97263692328eea4af106cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21284c08aed51c5899665ade97263692328eea4af106cristy% 21294c08aed51c5899665ade97263692328eea4af106cristy% PixelSetQuantumPixel() sets the pixel of the pixel wand. 21304c08aed51c5899665ade97263692328eea4af106cristy% 21314c08aed51c5899665ade97263692328eea4af106cristy% The format of the PixelSetQuantumPixel method is: 21324c08aed51c5899665ade97263692328eea4af106cristy% 21336d7e3bacbd8f25ae6b9dcfb8c898bc795e58a492cristy% void PixelSetQuantumPixel(const Image *image,const Quantum *pixel, 21344c08aed51c5899665ade97263692328eea4af106cristy% PixelWand *wand) 21354c08aed51c5899665ade97263692328eea4af106cristy% 21364c08aed51c5899665ade97263692328eea4af106cristy% A description of each parameter follows: 21374c08aed51c5899665ade97263692328eea4af106cristy% 21384c08aed51c5899665ade97263692328eea4af106cristy% o wand: the pixel wand. 21394c08aed51c5899665ade97263692328eea4af106cristy% 21404c08aed51c5899665ade97263692328eea4af106cristy% o pixel: the pixel wand pixel. 21413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 21434c08aed51c5899665ade97263692328eea4af106cristyWandExport void PixelSetQuantumPixel(const Image *image,const Quantum *pixel, 21444c08aed51c5899665ade97263692328eea4af106cristy PixelWand *wand) 21453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 21463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2147e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 21483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 21493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 21504c08aed51c5899665ade97263692328eea4af106cristy assert(pixel != (Quantum *) NULL); 2151a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.red=(double) GetPixelRed(image,pixel); 2152a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.green=(double) GetPixelGreen(image,pixel); 2153a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.blue=(double) GetPixelBlue(image,pixel); 2154a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.black=(double) GetPixelBlack(image,pixel); 2155a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.alpha=(double) GetPixelAlpha(image,pixel); 2156b0a657e13c4aefba39c51292005427b47277869dcristy wand->pixel.alpha_trait=GetPixelAlpha(image,pixel) != OpaqueAlpha ? 2157b0a657e13c4aefba39c51292005427b47277869dcristy BlendPixelTrait : UndefinedPixelTrait; 21583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 21593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 21603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 21613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t R e d % 21663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetRed() sets the normalized red color of the pixel wand. 21723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetRed method is: 21743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetRed(PixelWand *wand,const double red) 21763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 21783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 21803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o red: the red color. 21823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 21833ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 21843ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetRed(PixelWand *wand,const double red) 21853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 21863ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2187e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 21883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 21893ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2190a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.red=(double) ClampToQuantum(QuantumRange*red); 21913ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 21923ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 21933ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 21943ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21953ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21963ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21973ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 21983ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t R e d Q u a n t u m % 21993ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22003ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22013ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22023ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 22033ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22043ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetRedQuantum() sets the red color of the pixel wand. 22053ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22063ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetRedQuantum method is: 22073ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22083ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetRedQuantum(PixelWand *wand,const Quantum red) 22093ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22103ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 22113ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22123ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 22133ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22143ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o red: the red color. 22153ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22163ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 22173ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetRedQuantum(PixelWand *wand,const Quantum red) 22183ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 22193ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2220e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 22213ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 22223ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2223a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.red=(double) red; 22243ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 22253ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 22263ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 22273ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 22283ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22293ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22303ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22313ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t Y e l l o w % 22323ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22333ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22343ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22353ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 22363ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22373ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetYellow() sets the normalized yellow color of the pixel wand. 22383ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22393ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetYellow method is: 22403ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22413ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetYellow(PixelWand *wand,const double yellow) 22423ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22433ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 22443ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22453ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 22463ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22473ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o yellow: the yellow color. 22483ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22493ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 22503ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetYellow(PixelWand *wand,const double yellow) 22513ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 22523ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2253e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 22543ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 22553ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2256a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.blue=(double) ClampToQuantum(QuantumRange*yellow); 22573ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 22583ed852eea50f9d4cd633efb8c2b054b8e33c253cristy 22593ed852eea50f9d4cd633efb8c2b054b8e33c253cristy/* 22603ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 22613ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22623ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22633ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22643ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% P i x e l S e t Y e l l o w Q u a n t u m % 22653ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22663ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22673ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% % 22683ed852eea50f9d4cd633efb8c2b054b8e33c253cristy%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 22693ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22703ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% PixelSetYellowQuantum() sets the yellow color of the pixel wand. 22713ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22723ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% The format of the PixelSetYellowQuantum method is: 22733ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22743ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow) 22753ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22763ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% A description of each parameter follows: 22773ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22783ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o wand: the pixel wand. 22793ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22803ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% o yellow: the yellow color. 22813ed852eea50f9d4cd633efb8c2b054b8e33c253cristy% 22823ed852eea50f9d4cd633efb8c2b054b8e33c253cristy*/ 22833ed852eea50f9d4cd633efb8c2b054b8e33c253cristyWandExport void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow) 22843ed852eea50f9d4cd633efb8c2b054b8e33c253cristy{ 22853ed852eea50f9d4cd633efb8c2b054b8e33c253cristy assert(wand != (const PixelWand *) NULL); 2286e1c94d9d25db6b0dd7a5028ffee31d1057855d73cristy assert(wand->signature == MagickWandSignature); 22873ed852eea50f9d4cd633efb8c2b054b8e33c253cristy if (wand->debug != MagickFalse) 22883ed852eea50f9d4cd633efb8c2b054b8e33c253cristy (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); 2289a19f1d70e9a9f88279c4ecafe6dfafc1f9a09599cristy wand->pixel.blue=(double) yellow; 22903ed852eea50f9d4cd633efb8c2b054b8e33c253cristy} 2291