pixel-wand.html 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>ImageMagick – MagickWand, C API: Pixel Wand Methods</title>
  7. <meta name="application-name" content="ImageMagick" />
  8. <meta name="description" content="" />
  9. <meta name="application-url" content="https://imagemagick.org" />
  10. <meta name="generator" content="PHP" />
  11. <meta name="keywords" content="magickwc, api:, pixel, wmethods, image processing software" />
  12. <meta name="rating" content="GENERAL" />
  13. <meta name="robots" content="INDEX, FOLLOW" />
  14. <meta name="generator" content="ImageMagick Studio LLC" />
  15. <meta name="author" content="ImageMagick Studio LLC" />
  16. <meta name="revisit-after" content="2 DAYS" />
  17. <meta name="resource-type" content="document" />
  18. <meta name="copyright" content="Copyright (c) 1999 ImageMagick Studio LLC" />
  19. <meta name="distribution" content="Global" />
  20. <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
  21. <meta property='og:url' content='../../' />
  22. <meta property='og:title' content='ImageMagick' />
  23. <meta property='og:image' content='../../../images/logo.png' />
  24. <meta property='og:type' content='website' />
  25. <meta property='og:site_name' content='ImageMagick' />
  26. <meta property='og:description' content="Create, Edit, Compose, or Convert Digital Images" />
  27. <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
  28. <link href="pixel-wand.html" rel="canonical" />
  29. <link href="../../../images/wand.png" rel="icon" />
  30. <link href="../../../images/wand.ico" rel="shortcut icon" />
  31. <link href="../../assets/magick.css" rel="stylesheet" />
  32. </head>
  33. <body>
  34. <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
  35. <div class="container-fluid">
  36. <a class="navbar-brand" href="../../"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../../../images/wand.ico"/></a>
  37. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#magick-navbars" aria-controls="magick-navbars" aria-expanded="false" aria-label="Toggle navigation">
  38. <span class="navbar-toggler-icon"></span>
  39. </button>
  40. <div class="collapse navbar-collapse" id="magick-navbars">
  41. <ul class="navbar-nav me-auto mb-2 mb-md-0">
  42. <li class="nav-item">
  43. <a class="nav-link " href="../../www/download.html">Download</a>
  44. </li>
  45. <li class="nav-item">
  46. <a class="nav-link " href="../../www/command-line-tools.html">Tools</a>
  47. </li>
  48. <li class="nav-item">
  49. <a class="nav-link " href="../../www/command-line-processing.html">CLI</a>
  50. </li>
  51. <li class="nav-item">
  52. <a class="nav-link " href="../../www/develop.html">Develop</a>
  53. </li>
  54. <li class="nav-item">
  55. <a class="nav-link" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a>
  56. </li>
  57. <li class="nav-item">
  58. <iframe src="https://github.com/sponsors/ImageMagick/button" title="Sponsor ImageMagick" height="35" width="107" style="border: 0;"></iframe>
  59. </li>
  60. </ul>
  61. <form class="d-flex form-inline" action="https://imagemagick.org/script/search.php">
  62. <input class="form-control me-2" type="text" name="q" placeholder="Search" aria-label="Search">
  63. <button class="btn btn-outline-success" type="submit" name="sa">Search</button>
  64. </form>
  65. </div>
  66. </div>
  67. </nav>
  68. <div class="container">
  69. <script async="async" src="https://localhost/pagead/js/adsbygoogle.js"></script>
  70. <ins class="adsbygoogle"
  71. style="display:block"
  72. data-ad-client="ca-pub-3129977114552745"
  73. data-ad-slot="6345125851"
  74. data-full-width-responsive="true"
  75. data-ad-format="horizontal"></ins>
  76. <script>
  77. (adsbygoogle = window.adsbygoogle || []).push({});
  78. </script>
  79. </div>
  80. <main class="container">
  81. <div class="magick-template">
  82. <br/>
  83. <div class="btn-group">
  84. <button class="btn btn-secondary dropdown-toggle" type="button" id="defaultDropdown" data-bs-toggle="dropdown" data-bs-auto-close="true" aria-expanded="false">
  85. Select API Method
  86. </button>
  87. <ul class="dropdown-menu pre-scrollable" aria-labelledby="defaultDropdown">
  88. <li><a href="pixel-wand.html#ClearPixelWand">ClearPixelWand</a></li>
  89. <li><a href="pixel-wand.html#ClonePixelWand">ClonePixelWand</a></li>
  90. <li><a href="pixel-wand.html#ClonePixelWands">ClonePixelWands</a></li>
  91. <li><a href="pixel-wand.html#DestroyPixelWand">DestroyPixelWand</a></li>
  92. <li><a href="pixel-wand.html#DestroyPixelWands">DestroyPixelWands</a></li>
  93. <li><a href="pixel-wand.html#IsPixelWandSimilar">IsPixelWandSimilar</a></li>
  94. <li><a href="pixel-wand.html#IsPixelWand">IsPixelWand</a></li>
  95. <li><a href="pixel-wand.html#NewPixelWand">NewPixelWand</a></li>
  96. <li><a href="pixel-wand.html#NewPixelWands">NewPixelWands</a></li>
  97. <li><a href="pixel-wand.html#PixelClearException">PixelClearException</a></li>
  98. <li><a href="pixel-wand.html#PixelGetAlpha">PixelGetAlpha</a></li>
  99. <li><a href="pixel-wand.html#PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></li>
  100. <li><a href="pixel-wand.html#PixelGetBlack">PixelGetBlack</a></li>
  101. <li><a href="pixel-wand.html#PixelGetBlackQuantum">PixelGetBlackQuantum</a></li>
  102. <li><a href="pixel-wand.html#PixelGetBlue">PixelGetBlue</a></li>
  103. <li><a href="pixel-wand.html#PixelGetBlueQuantum">PixelGetBlueQuantum</a></li>
  104. <li><a href="pixel-wand.html#PixelGetColorAsString">PixelGetColorAsString</a></li>
  105. <li><a href="pixel-wand.html#PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a></li>
  106. <li><a href="pixel-wand.html#PixelGetColorCount">PixelGetColorCount</a></li>
  107. <li><a href="pixel-wand.html#PixelGetCyan">PixelGetCyan</a></li>
  108. <li><a href="pixel-wand.html#PixelGetCyanQuantum">PixelGetCyanQuantum</a></li>
  109. <li><a href="pixel-wand.html#PixelGetException">PixelGetException</a></li>
  110. <li><a href="pixel-wand.html#PixelGetExceptionType">PixelGetExceptionType</a></li>
  111. <li><a href="pixel-wand.html#PixelGetFuzz">PixelGetFuzz</a></li>
  112. <li><a href="pixel-wand.html#PixelGetGreen">PixelGetGreen</a></li>
  113. <li><a href="pixel-wand.html#PixelGetGreenQuantum">PixelGetGreenQuantum</a></li>
  114. <li><a href="pixel-wand.html#PixelGetHSL">PixelGetHSL</a></li>
  115. <li><a href="pixel-wand.html#PixelGetIndex">PixelGetIndex</a></li>
  116. <li><a href="pixel-wand.html#PixelGetMagenta">PixelGetMagenta</a></li>
  117. <li><a href="pixel-wand.html#PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></li>
  118. <li><a href="pixel-wand.html#PixelGetMagickColor">PixelGetMagickColor</a></li>
  119. <li><a href="pixel-wand.html#PixelGetPixel">PixelGetPixel</a></li>
  120. <li><a href="pixel-wand.html#PixelGetQuantumPacket">PixelGetQuantumPacket</a></li>
  121. <li><a href="pixel-wand.html#PixelGetQuantumPixel">PixelGetQuantumPixel</a></li>
  122. <li><a href="pixel-wand.html#PixelGetRed">PixelGetRed</a></li>
  123. <li><a href="pixel-wand.html#PixelGetRedQuantum">PixelGetRedQuantum</a></li>
  124. <li><a href="pixel-wand.html#PixelGetYellow">PixelGetYellow</a></li>
  125. <li><a href="pixel-wand.html#PixelGetYellowQuantum">PixelGetYellowQuantum</a></li>
  126. <li><a href="pixel-wand.html#PixelSetAlpha">PixelSetAlpha</a></li>
  127. <li><a href="pixel-wand.html#PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></li>
  128. <li><a href="pixel-wand.html#PixelSetBlack">PixelSetBlack</a></li>
  129. <li><a href="pixel-wand.html#PixelSetBlackQuantum">PixelSetBlackQuantum</a></li>
  130. <li><a href="pixel-wand.html#PixelSetBlue">PixelSetBlue</a></li>
  131. <li><a href="pixel-wand.html#PixelSetBlueQuantum">PixelSetBlueQuantum</a></li>
  132. <li><a href="pixel-wand.html#PixelSetColor">PixelSetColor</a></li>
  133. <li><a href="pixel-wand.html#PixelSetColorCount">PixelSetColorCount</a></li>
  134. <li><a href="pixel-wand.html#PixelSetColorFromWand">PixelSetColorFromWand</a></li>
  135. <li><a href="pixel-wand.html#PixelSetCyan">PixelSetCyan</a></li>
  136. <li><a href="pixel-wand.html#PixelSetCyanQuantum">PixelSetCyanQuantum</a></li>
  137. <li><a href="pixel-wand.html#PixelSetFuzz">PixelSetFuzz</a></li>
  138. <li><a href="pixel-wand.html#PixelSetGreen">PixelSetGreen</a></li>
  139. <li><a href="pixel-wand.html#PixelSetGreenQuantum">PixelSetGreenQuantum</a></li>
  140. <li><a href="pixel-wand.html#PixelSetHSL">PixelSetHSL</a></li>
  141. <li><a href="pixel-wand.html#PixelSetIndex">PixelSetIndex</a></li>
  142. <li><a href="pixel-wand.html#PixelSetMagenta">PixelSetMagenta</a></li>
  143. <li><a href="pixel-wand.html#PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></li>
  144. <li><a href="pixel-wand.html#PixelSetPixelColor">PixelSetPixelColor</a></li>
  145. <li><a href="pixel-wand.html#PixelSetQuantumPixel">PixelSetQuantumPixel</a></li>
  146. <li><a href="pixel-wand.html#PixelSetRed">PixelSetRed</a></li>
  147. <li><a href="pixel-wand.html#PixelSetRedQuantum">PixelSetRedQuantum</a></li>
  148. <li><a href="pixel-wand.html#PixelSetYellow">PixelSetYellow</a></li>
  149. </ul>
  150. </div>
  151. <br/>
  152. <br/>
  153. <div class="magick-header">
  154. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="ClearPixelWand">ClearPixelWand</a></h2>
  155. <p>ClearPixelWand() clears resources associated with the wand.</p>
  156. <p>The format of the ClearPixelWand method is:</p>
  157. <pre class="bg-light text-dark mx-4"><samp>void ClearPixelWand(PixelWand *wand)
  158. </samp></pre>
  159. <p>A description of each parameter follows:</p>
  160. <dd>
  161. </dd>
  162. <dd> </dd>
  163. <dl class="dl-horizontal">
  164. <dt>wand</dt>
  165. <dd>the pixel wand. </dd>
  166. <dd> </dd>
  167. </dl>
  168. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="ClonePixelWand">ClonePixelWand</a></h2>
  169. <p>ClonePixelWand() makes an exact copy of the specified wand.</p>
  170. <p>The format of the ClonePixelWand method is:</p>
  171. <pre class="bg-light text-dark mx-4"><samp>PixelWand *ClonePixelWand(const PixelWand *wand)
  172. </samp></pre>
  173. <p>A description of each parameter follows:</p>
  174. <dd>
  175. </dd>
  176. <dd> </dd>
  177. <dl class="dl-horizontal">
  178. <dt>wand</dt>
  179. <dd>the magick wand. </dd>
  180. <dd> </dd>
  181. </dl>
  182. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="ClonePixelWands">ClonePixelWands</a></h2>
  183. <p>ClonePixelWands() makes an exact copy of the specified wands.</p>
  184. <p>The format of the ClonePixelWands method is:</p>
  185. <pre class="bg-light text-dark mx-4"><samp>PixelWand **ClonePixelWands(const PixelWand **wands,
  186. const size_t number_wands)
  187. </samp></pre>
  188. <p>A description of each parameter follows:</p>
  189. <dd>
  190. </dd>
  191. <dd> </dd>
  192. <dl class="dl-horizontal">
  193. <dt>wands</dt>
  194. <dd>the magick wands. </dd>
  195. <dd> </dd>
  196. <dt>number_wands</dt>
  197. <dd>the number of wands. </dd>
  198. <dd> </dd>
  199. </dl>
  200. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWand">DestroyPixelWand</a></h2>
  201. <p>DestroyPixelWand() deallocates resources associated with a PixelWand.</p>
  202. <p>The format of the DestroyPixelWand method is:</p>
  203. <pre class="bg-light text-dark mx-4"><samp>PixelWand *DestroyPixelWand(PixelWand *wand)
  204. </samp></pre>
  205. <p>A description of each parameter follows:</p>
  206. <dd>
  207. </dd>
  208. <dd> </dd>
  209. <dl class="dl-horizontal">
  210. <dt>wand</dt>
  211. <dd>the pixel wand. </dd>
  212. <dd> </dd>
  213. </dl>
  214. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWands">DestroyPixelWands</a></h2>
  215. <p>DestroyPixelWands() deallocates resources associated with an array of pixel wands.</p>
  216. <p>The format of the DestroyPixelWands method is:</p>
  217. <pre class="bg-light text-dark mx-4"><samp>PixelWand **DestroyPixelWands(PixelWand **wand,
  218. const size_t number_wands)
  219. </samp></pre>
  220. <p>A description of each parameter follows:</p>
  221. <dd>
  222. </dd>
  223. <dd> </dd>
  224. <dl class="dl-horizontal">
  225. <dt>wand</dt>
  226. <dd>the pixel wand. </dd>
  227. <dd> </dd>
  228. <dt>number_wands</dt>
  229. <dd>the number of wands. </dd>
  230. <dd> </dd>
  231. </dl>
  232. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="IsPixelWandSimilar">IsPixelWandSimilar</a></h2>
  233. <p>IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.</p>
  234. <p>The format of the IsPixelWandSimilar method is:</p>
  235. <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q,
  236. const double fuzz)
  237. </samp></pre>
  238. <p>A description of each parameter follows:</p>
  239. <dd>
  240. </dd>
  241. <dd> </dd>
  242. <dl class="dl-horizontal">
  243. <dt>p</dt>
  244. <dd>the pixel wand. </dd>
  245. <dd> </dd>
  246. <dt>q</dt>
  247. <dd>the pixel wand. </dd>
  248. <dd> </dd>
  249. <dt>fuzz</dt>
  250. <dd>any two colors that are less than or equal to this distance squared are consider similar. </dd>
  251. <dd> </dd>
  252. </dl>
  253. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="IsPixelWand">IsPixelWand</a></h2>
  254. <p>IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.</p>
  255. <p>The format of the IsPixelWand method is:</p>
  256. <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType IsPixelWand(const PixelWand *wand)
  257. </samp></pre>
  258. <p>A description of each parameter follows:</p>
  259. <dd>
  260. </dd>
  261. <dd> </dd>
  262. <dl class="dl-horizontal">
  263. <dt>wand</dt>
  264. <dd>the magick wand. </dd>
  265. <dd> </dd>
  266. </dl>
  267. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="NewPixelWand">NewPixelWand</a></h2>
  268. <p>NewPixelWand() returns a new pixel wand.</p>
  269. <p>The format of the NewPixelWand method is:</p>
  270. <pre class="bg-light text-dark mx-4"><samp>PixelWand *NewPixelWand(void)
  271. </samp></pre>
  272. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="NewPixelWands">NewPixelWands</a></h2>
  273. <p>NewPixelWands() returns an array of pixel wands.</p>
  274. <p>The format of the NewPixelWands method is:</p>
  275. <pre class="bg-light text-dark mx-4"><samp>PixelWand **NewPixelWands(const size_t number_wands)
  276. </samp></pre>
  277. <p>A description of each parameter follows:</p>
  278. <dd>
  279. </dd>
  280. <dd> </dd>
  281. <dl class="dl-horizontal">
  282. <dt>number_wands</dt>
  283. <dd>the number of wands. </dd>
  284. <dd> </dd>
  285. </dl>
  286. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelClearException">PixelClearException</a></h2>
  287. <p>PixelClearException() clear any exceptions associated with the iterator.</p>
  288. <p>The format of the PixelClearException method is:</p>
  289. <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType PixelClearException(PixelWand *wand)
  290. </samp></pre>
  291. <p>A description of each parameter follows:</p>
  292. <dd>
  293. </dd>
  294. <dd> </dd>
  295. <dl class="dl-horizontal">
  296. <dt>wand</dt>
  297. <dd>the pixel wand. </dd>
  298. <dd> </dd>
  299. </dl>
  300. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetAlpha">PixelGetAlpha</a></h2>
  301. <p>PixelGetAlpha() returns the normalized alpha value of the pixel wand.</p>
  302. <p>The format of the PixelGetAlpha method is:</p>
  303. <pre class="bg-light text-dark mx-4"><samp>double PixelGetAlpha(const PixelWand *wand)
  304. </samp></pre>
  305. <p>A description of each parameter follows:</p>
  306. <dd>
  307. </dd>
  308. <dd> </dd>
  309. <dl class="dl-horizontal">
  310. <dt>wand</dt>
  311. <dd>the pixel wand. </dd>
  312. <dd> </dd>
  313. </dl>
  314. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></h2>
  315. <p>PixelGetAlphaQuantum() returns the alpha value of the pixel wand.</p>
  316. <p>The format of the PixelGetAlphaQuantum method is:</p>
  317. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetAlphaQuantum(const PixelWand *wand)
  318. </samp></pre>
  319. <p>A description of each parameter follows:</p>
  320. <dd>
  321. </dd>
  322. <dd> </dd>
  323. <dl class="dl-horizontal">
  324. <dt>wand</dt>
  325. <dd>the pixel wand. </dd>
  326. <dd> </dd>
  327. </dl>
  328. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetBlack">PixelGetBlack</a></h2>
  329. <p>PixelGetBlack() returns the normalized black color of the pixel wand.</p>
  330. <p>The format of the PixelGetBlack method is:</p>
  331. <pre class="bg-light text-dark mx-4"><samp>double PixelGetBlack(const PixelWand *wand)
  332. </samp></pre>
  333. <p>A description of each parameter follows:</p>
  334. <dd>
  335. </dd>
  336. <dd> </dd>
  337. <dl class="dl-horizontal">
  338. <dt>wand</dt>
  339. <dd>the pixel wand. </dd>
  340. <dd> </dd>
  341. </dl>
  342. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetBlackQuantum">PixelGetBlackQuantum</a></h2>
  343. <p>PixelGetBlackQuantum() returns the black color of the pixel wand.</p>
  344. <p>The format of the PixelGetBlackQuantum method is:</p>
  345. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetBlackQuantum(const PixelWand *wand)
  346. </samp></pre>
  347. <p>A description of each parameter follows:</p>
  348. <dd>
  349. </dd>
  350. <dd> </dd>
  351. <dl class="dl-horizontal">
  352. <dt>wand</dt>
  353. <dd>the pixel wand. </dd>
  354. <dd> </dd>
  355. </dl>
  356. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetBlue">PixelGetBlue</a></h2>
  357. <p>PixelGetBlue() returns the normalized blue color of the pixel wand.</p>
  358. <p>The format of the PixelGetBlue method is:</p>
  359. <pre class="bg-light text-dark mx-4"><samp>double PixelGetBlue(const PixelWand *wand)
  360. </samp></pre>
  361. <p>A description of each parameter follows:</p>
  362. <dd>
  363. </dd>
  364. <dd> </dd>
  365. <dl class="dl-horizontal">
  366. <dt>wand</dt>
  367. <dd>the pixel wand. </dd>
  368. <dd> </dd>
  369. </dl>
  370. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetBlueQuantum">PixelGetBlueQuantum</a></h2>
  371. <p>PixelGetBlueQuantum() returns the blue color of the pixel wand.</p>
  372. <p>The format of the PixelGetBlueQuantum method is:</p>
  373. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetBlueQuantum(const PixelWand *wand)
  374. </samp></pre>
  375. <p>A description of each parameter follows:</p>
  376. <dd>
  377. </dd>
  378. <dd> </dd>
  379. <dl class="dl-horizontal">
  380. <dt>wand</dt>
  381. <dd>the pixel wand. </dd>
  382. <dd> </dd>
  383. </dl>
  384. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsString">PixelGetColorAsString</a></h2>
  385. <p>PixelGetColorAsString() returns the color of the pixel wand as a string.</p>
  386. <p>The format of the PixelGetColorAsString method is:</p>
  387. <pre class="bg-light text-dark mx-4"><samp>char *PixelGetColorAsString(PixelWand *wand)
  388. </samp></pre>
  389. <p>A description of each parameter follows:</p>
  390. <dd>
  391. </dd>
  392. <dd> </dd>
  393. <dl class="dl-horizontal">
  394. <dt>wand</dt>
  395. <dd>the pixel wand. </dd>
  396. <dd> </dd>
  397. </dl>
  398. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a></h2>
  399. <p>PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.</p>
  400. <p>The format of the PixelGetColorAsNormalizedString method is:</p>
  401. <pre class="bg-light text-dark mx-4"><samp>char *PixelGetColorAsNormalizedString(PixelWand *wand)
  402. </samp></pre>
  403. <p>A description of each parameter follows:</p>
  404. <dd>
  405. </dd>
  406. <dd> </dd>
  407. <dl class="dl-horizontal">
  408. <dt>wand</dt>
  409. <dd>the pixel wand. </dd>
  410. <dd> </dd>
  411. </dl>
  412. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetColorCount">PixelGetColorCount</a></h2>
  413. <p>PixelGetColorCount() returns the color count associated with this color.</p>
  414. <p>The format of the PixelGetColorCount method is:</p>
  415. <pre class="bg-light text-dark mx-4"><samp>size_t PixelGetColorCount(const PixelWand *wand)
  416. </samp></pre>
  417. <p>A description of each parameter follows:</p>
  418. <dd>
  419. </dd>
  420. <dd> </dd>
  421. <dl class="dl-horizontal">
  422. <dt>wand</dt>
  423. <dd>the pixel wand. </dd>
  424. <dd> </dd>
  425. </dl>
  426. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetCyan">PixelGetCyan</a></h2>
  427. <p>PixelGetCyan() returns the normalized cyan color of the pixel wand.</p>
  428. <p>The format of the PixelGetCyan method is:</p>
  429. <pre class="bg-light text-dark mx-4"><samp>double PixelGetCyan(const PixelWand *wand)
  430. </samp></pre>
  431. <p>A description of each parameter follows:</p>
  432. <dd>
  433. </dd>
  434. <dd> </dd>
  435. <dl class="dl-horizontal">
  436. <dt>wand</dt>
  437. <dd>the pixel wand. </dd>
  438. <dd> </dd>
  439. </dl>
  440. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetCyanQuantum">PixelGetCyanQuantum</a></h2>
  441. <p>PixelGetCyanQuantum() returns the cyan color of the pixel wand.</p>
  442. <p>The format of the PixelGetCyanQuantum method is:</p>
  443. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetCyanQuantum(const PixelWand *wand)
  444. </samp></pre>
  445. <p>A description of each parameter follows:</p>
  446. <dd>
  447. </dd>
  448. <dd> </dd>
  449. <dl class="dl-horizontal">
  450. <dt>wand</dt>
  451. <dd>the pixel wand. </dd>
  452. <dd> </dd>
  453. </dl>
  454. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetException">PixelGetException</a></h2>
  455. <p>PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
  456. <p>The format of the PixelGetException method is:</p>
  457. <pre class="bg-light text-dark mx-4"><samp>char *PixelGetException(const PixelWand *wand,ExceptionType *severity)
  458. </samp></pre>
  459. <p>A description of each parameter follows:</p>
  460. <dd>
  461. </dd>
  462. <dd> </dd>
  463. <dl class="dl-horizontal">
  464. <dt>wand</dt>
  465. <dd>the pixel wand. </dd>
  466. <dd> </dd>
  467. <dt>severity</dt>
  468. <dd>the severity of the error is returned here. </dd>
  469. <dd> </dd>
  470. </dl>
  471. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetExceptionType">PixelGetExceptionType</a></h2>
  472. <p>PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
  473. <p>The format of the PixelGetExceptionType method is:</p>
  474. <pre class="bg-light text-dark mx-4"><samp>ExceptionType PixelGetExceptionType(const PixelWand *wand)
  475. </samp></pre>
  476. <p>A description of each parameter follows:</p>
  477. <dd>
  478. </dd>
  479. <dd> </dd>
  480. <dl class="dl-horizontal">
  481. <dt>wand</dt>
  482. <dd>the magick wand. </dd>
  483. <dd> </dd>
  484. </dl>
  485. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetFuzz">PixelGetFuzz</a></h2>
  486. <p>PixelGetFuzz() returns the normalized fuzz value of the pixel wand.</p>
  487. <p>The format of the PixelGetFuzz method is:</p>
  488. <pre class="bg-light text-dark mx-4"><samp>double PixelGetFuzz(const PixelWand *wand)
  489. </samp></pre>
  490. <p>A description of each parameter follows:</p>
  491. <dd>
  492. </dd>
  493. <dd> </dd>
  494. <dl class="dl-horizontal">
  495. <dt>wand</dt>
  496. <dd>the pixel wand. </dd>
  497. <dd> </dd>
  498. </dl>
  499. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetGreen">PixelGetGreen</a></h2>
  500. <p>PixelGetGreen() returns the normalized green color of the pixel wand.</p>
  501. <p>The format of the PixelGetGreen method is:</p>
  502. <pre class="bg-light text-dark mx-4"><samp>double PixelGetGreen(const PixelWand *wand)
  503. </samp></pre>
  504. <p>A description of each parameter follows:</p>
  505. <dd>
  506. </dd>
  507. <dd> </dd>
  508. <dl class="dl-horizontal">
  509. <dt>wand</dt>
  510. <dd>the pixel wand. </dd>
  511. <dd> </dd>
  512. </dl>
  513. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetGreenQuantum">PixelGetGreenQuantum</a></h2>
  514. <p>PixelGetGreenQuantum() returns the green color of the pixel wand.</p>
  515. <p>The format of the PixelGetGreenQuantum method is:</p>
  516. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetGreenQuantum(const PixelWand *wand)
  517. </samp></pre>
  518. <p>A description of each parameter follows:</p>
  519. <dd>
  520. </dd>
  521. <dd> </dd>
  522. <dl class="dl-horizontal">
  523. <dt>wand</dt>
  524. <dd>the pixel wand. </dd>
  525. <dd> </dd>
  526. </dl>
  527. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetHSL">PixelGetHSL</a></h2>
  528. <p>PixelGetHSL() returns the normalized HSL color of the pixel wand.</p>
  529. <p>The format of the PixelGetHSL method is:</p>
  530. <pre class="bg-light text-dark mx-4"><samp>void PixelGetHSL(const PixelWand *wand,double *hue,double *saturation,
  531. double *lightness)
  532. </samp></pre>
  533. <p>A description of each parameter follows:</p>
  534. <dd>
  535. </dd>
  536. <dd> </dd>
  537. <dl class="dl-horizontal">
  538. <dt>wand</dt>
  539. <dd>the pixel wand. </dd>
  540. <dd> </dd>
  541. <dt>hue,saturation,lightness</dt>
  542. <dd>Return the pixel hue, saturation, and brightness. </dd>
  543. <dd> </dd>
  544. </dl>
  545. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetIndex">PixelGetIndex</a></h2>
  546. <p>PixelGetIndex() returns the colormap index from the pixel wand.</p>
  547. <p>The format of the PixelGetIndex method is:</p>
  548. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetIndex(const PixelWand *wand)
  549. </samp></pre>
  550. <p>A description of each parameter follows:</p>
  551. <dd>
  552. </dd>
  553. <dd> </dd>
  554. <dl class="dl-horizontal">
  555. <dt>wand</dt>
  556. <dd>the pixel wand. </dd>
  557. <dd> </dd>
  558. </dl>
  559. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetMagenta">PixelGetMagenta</a></h2>
  560. <p>PixelGetMagenta() returns the normalized magenta color of the pixel wand.</p>
  561. <p>The format of the PixelGetMagenta method is:</p>
  562. <pre class="bg-light text-dark mx-4"><samp>double PixelGetMagenta(const PixelWand *wand)
  563. </samp></pre>
  564. <p>A description of each parameter follows:</p>
  565. <dd>
  566. </dd>
  567. <dd> </dd>
  568. <dl class="dl-horizontal">
  569. <dt>wand</dt>
  570. <dd>the pixel wand. </dd>
  571. <dd> </dd>
  572. </dl>
  573. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></h2>
  574. <p>PixelGetMagentaQuantum() returns the magenta color of the pixel wand.</p>
  575. <p>The format of the PixelGetMagentaQuantum method is:</p>
  576. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetMagentaQuantum(const PixelWand *wand)
  577. </samp></pre>
  578. <p>A description of each parameter follows:</p>
  579. <dd>
  580. </dd>
  581. <dd> </dd>
  582. <dl class="dl-horizontal">
  583. <dt>wand</dt>
  584. <dd>the pixel wand. </dd>
  585. <dd> </dd>
  586. </dl>
  587. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetMagickColor">PixelGetMagickColor</a></h2>
  588. <p>PixelGetMagickColor() gets the magick color of the pixel wand.</p>
  589. <p>The format of the PixelGetMagickColor method is:</p>
  590. <pre class="bg-light text-dark mx-4"><samp>void PixelGetMagickColor(PixelWand *wand,PixelInfo *color)
  591. </samp></pre>
  592. <p>A description of each parameter follows:</p>
  593. <dd>
  594. </dd>
  595. <dd> </dd>
  596. <dl class="dl-horizontal">
  597. <dt>wand</dt>
  598. <dd>the pixel wand. </dd>
  599. <dd> </dd>
  600. <dt>color</dt>
  601. <dd> The pixel wand color is returned here. </dd>
  602. <dd> </dd>
  603. </dl>
  604. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetPixel">PixelGetPixel</a></h2>
  605. <p>PixelGetPixel() returns the pixel wand pixel.</p>
  606. <p>The format of the PixelGetPixel method is:</p>
  607. <pre class="bg-light text-dark mx-4"><samp>PixelInfo PixelGetPixel(const PixelWand *wand)
  608. </samp></pre>
  609. <p>A description of each parameter follows:</p>
  610. <dd>
  611. </dd>
  612. <dd> </dd>
  613. <dl class="dl-horizontal">
  614. <dt>wand</dt>
  615. <dd>the pixel wand. </dd>
  616. <dd> </dd>
  617. </dl>
  618. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumPacket">PixelGetQuantumPacket</a></h2>
  619. <p>PixelGetQuantumPacket() gets the packet of the pixel wand as a PixelInfo.</p>
  620. <p>The format of the PixelGetQuantumPacket method is:</p>
  621. <pre class="bg-light text-dark mx-4"><samp>void PixelGetQuantumPacket(PixelWand *wand,PixelInfo *packet)
  622. </samp></pre>
  623. <p>A description of each parameter follows:</p>
  624. <dd>
  625. </dd>
  626. <dd> </dd>
  627. <dl class="dl-horizontal">
  628. <dt>wand</dt>
  629. <dd>the pixel wand. </dd>
  630. <dd> </dd>
  631. <dt>packet</dt>
  632. <dd> The pixel wand packet is returned here. </dd>
  633. <dd> </dd>
  634. </dl>
  635. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumPixel">PixelGetQuantumPixel</a></h2>
  636. <p>PixelGetQuantumPixel() gets the pixel of the pixel wand as a PixelInfo.</p>
  637. <p>The format of the PixelGetQuantumPixel method is:</p>
  638. <pre class="bg-light text-dark mx-4"><samp>void PixelGetQuantumPixel(const Image *image,const PixelWand *wand,
  639. Quantum *pixel)
  640. </samp></pre>
  641. <p>A description of each parameter follows:</p>
  642. <dd>
  643. </dd>
  644. <dd> </dd>
  645. <dl class="dl-horizontal">
  646. <dt>wand</dt>
  647. <dd>the pixel wand. </dd>
  648. <dd> </dd>
  649. <dt>pixel</dt>
  650. <dd> The pixel wand pixel is returned here. </dd>
  651. <dd> </dd>
  652. </dl>
  653. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetRed">PixelGetRed</a></h2>
  654. <p>PixelGetRed() returns the normalized red color of the pixel wand.</p>
  655. <p>The format of the PixelGetRed method is:</p>
  656. <pre class="bg-light text-dark mx-4"><samp>double PixelGetRed(const PixelWand *wand)
  657. </samp></pre>
  658. <p>A description of each parameter follows:</p>
  659. <dd>
  660. </dd>
  661. <dd> </dd>
  662. <dl class="dl-horizontal">
  663. <dt>wand</dt>
  664. <dd>the pixel wand. </dd>
  665. <dd> </dd>
  666. </dl>
  667. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetRedQuantum">PixelGetRedQuantum</a></h2>
  668. <p>PixelGetRedQuantum() returns the red color of the pixel wand.</p>
  669. <p>The format of the PixelGetRedQuantum method is:</p>
  670. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetRedQuantum(const PixelWand *wand)
  671. </samp></pre>
  672. <p>A description of each parameter follows:</p>
  673. <dd>
  674. </dd>
  675. <dd> </dd>
  676. <dl class="dl-horizontal">
  677. <dt>wand</dt>
  678. <dd>the pixel wand. </dd>
  679. <dd> </dd>
  680. </dl>
  681. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetYellow">PixelGetYellow</a></h2>
  682. <p>PixelGetYellow() returns the normalized yellow color of the pixel wand.</p>
  683. <p>The format of the PixelGetYellow method is:</p>
  684. <pre class="bg-light text-dark mx-4"><samp>double PixelGetYellow(const PixelWand *wand)
  685. </samp></pre>
  686. <p>A description of each parameter follows:</p>
  687. <dd>
  688. </dd>
  689. <dd> </dd>
  690. <dl class="dl-horizontal">
  691. <dt>wand</dt>
  692. <dd>the pixel wand. </dd>
  693. <dd> </dd>
  694. </dl>
  695. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelGetYellowQuantum">PixelGetYellowQuantum</a></h2>
  696. <p>PixelGetYellowQuantum() returns the yellow color of the pixel wand.</p>
  697. <p>The format of the PixelGetYellowQuantum method is:</p>
  698. <pre class="bg-light text-dark mx-4"><samp>Quantum PixelGetYellowQuantum(const PixelWand *wand)
  699. </samp></pre>
  700. <p>A description of each parameter follows:</p>
  701. <dd>
  702. </dd>
  703. <dd> </dd>
  704. <dl class="dl-horizontal">
  705. <dt>wand</dt>
  706. <dd>the pixel wand. </dd>
  707. <dd> </dd>
  708. </dl>
  709. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetAlpha">PixelSetAlpha</a></h2>
  710. <p>PixelSetAlpha() sets the normalized alpha value of the pixel wand.</p>
  711. <p>The format of the PixelSetAlpha method is:</p>
  712. <pre class="bg-light text-dark mx-4"><samp>void PixelSetAlpha(PixelWand *wand,const double alpha)
  713. </samp></pre>
  714. <p>A description of each parameter follows:</p>
  715. <dd>
  716. </dd>
  717. <dd> </dd>
  718. <dl class="dl-horizontal">
  719. <dt>wand</dt>
  720. <dd>the pixel wand. </dd>
  721. <dd> </dd>
  722. <dt>alpha</dt>
  723. <dd>the level of transparency: 1.0 is fully opaque and 0.0 is fully transparent. </dd>
  724. <dd> </dd>
  725. </dl>
  726. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></h2>
  727. <p>PixelSetAlphaQuantum() sets the alpha value of the pixel wand.</p>
  728. <p>The format of the PixelSetAlphaQuantum method is:</p>
  729. <pre class="bg-light text-dark mx-4"><samp>void PixelSetAlphaQuantum(PixelWand *wand,const Quantum alpha)
  730. </samp></pre>
  731. <p>A description of each parameter follows:</p>
  732. <dd>
  733. </dd>
  734. <dd> </dd>
  735. <dl class="dl-horizontal">
  736. <dt>wand</dt>
  737. <dd>the pixel wand. </dd>
  738. <dd> </dd>
  739. <dt>alpha</dt>
  740. <dd>the alpha value. </dd>
  741. <dd> </dd>
  742. </dl>
  743. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetBlack">PixelSetBlack</a></h2>
  744. <p>PixelSetBlack() sets the normalized black color of the pixel wand.</p>
  745. <p>The format of the PixelSetBlack method is:</p>
  746. <pre class="bg-light text-dark mx-4"><samp>void PixelSetBlack(PixelWand *wand,const double black)
  747. </samp></pre>
  748. <p>A description of each parameter follows:</p>
  749. <dd>
  750. </dd>
  751. <dd> </dd>
  752. <dl class="dl-horizontal">
  753. <dt>wand</dt>
  754. <dd>the pixel wand. </dd>
  755. <dd> </dd>
  756. <dt>black</dt>
  757. <dd>the black color. </dd>
  758. <dd> </dd>
  759. </dl>
  760. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetBlackQuantum">PixelSetBlackQuantum</a></h2>
  761. <p>PixelSetBlackQuantum() sets the black color of the pixel wand.</p>
  762. <p>The format of the PixelSetBlackQuantum method is:</p>
  763. <pre class="bg-light text-dark mx-4"><samp>void PixelSetBlackQuantum(PixelWand *wand,const Quantum black)
  764. </samp></pre>
  765. <p>A description of each parameter follows:</p>
  766. <dd>
  767. </dd>
  768. <dd> </dd>
  769. <dl class="dl-horizontal">
  770. <dt>wand</dt>
  771. <dd>the pixel wand. </dd>
  772. <dd> </dd>
  773. <dt>black</dt>
  774. <dd>the black color. </dd>
  775. <dd> </dd>
  776. </dl>
  777. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetBlue">PixelSetBlue</a></h2>
  778. <p>PixelSetBlue() sets the normalized blue color of the pixel wand.</p>
  779. <p>The format of the PixelSetBlue method is:</p>
  780. <pre class="bg-light text-dark mx-4"><samp>void PixelSetBlue(PixelWand *wand,const double blue)
  781. </samp></pre>
  782. <p>A description of each parameter follows:</p>
  783. <dd>
  784. </dd>
  785. <dd> </dd>
  786. <dl class="dl-horizontal">
  787. <dt>wand</dt>
  788. <dd>the pixel wand. </dd>
  789. <dd> </dd>
  790. <dt>blue</dt>
  791. <dd>the blue color. </dd>
  792. <dd> </dd>
  793. </dl>
  794. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetBlueQuantum">PixelSetBlueQuantum</a></h2>
  795. <p>PixelSetBlueQuantum() sets the blue color of the pixel wand.</p>
  796. <p>The format of the PixelSetBlueQuantum method is:</p>
  797. <pre class="bg-light text-dark mx-4"><samp>void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue)
  798. </samp></pre>
  799. <p>A description of each parameter follows:</p>
  800. <dd>
  801. </dd>
  802. <dd> </dd>
  803. <dl class="dl-horizontal">
  804. <dt>wand</dt>
  805. <dd>the pixel wand. </dd>
  806. <dd> </dd>
  807. <dt>blue</dt>
  808. <dd>the blue color. </dd>
  809. <dd> </dd>
  810. </dl>
  811. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetColor">PixelSetColor</a></h2>
  812. <p>PixelSetColor() sets the color of the pixel wand with a string (e.g. "blue", "#0000ff", "rgb(0,0,255)", "cmyk(100,100,100,10)", etc.).</p>
  813. <p>The format of the PixelSetColor method is:</p>
  814. <pre class="bg-light text-dark mx-4"><samp>MagickBooleanType PixelSetColor(PixelWand *wand,const char *color)
  815. </samp></pre>
  816. <p>A description of each parameter follows:</p>
  817. <dd>
  818. </dd>
  819. <dd> </dd>
  820. <dl class="dl-horizontal">
  821. <dt>wand</dt>
  822. <dd>the pixel wand. </dd>
  823. <dd> </dd>
  824. <dt>color</dt>
  825. <dd>the pixel wand color. </dd>
  826. <dd> </dd>
  827. </dl>
  828. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetColorCount">PixelSetColorCount</a></h2>
  829. <p>PixelSetColorCount() sets the color count of the pixel wand.</p>
  830. <p>The format of the PixelSetColorCount method is:</p>
  831. <pre class="bg-light text-dark mx-4"><samp>void PixelSetColorCount(PixelWand *wand,const size_t count)
  832. </samp></pre>
  833. <p>A description of each parameter follows:</p>
  834. <dd>
  835. </dd>
  836. <dd> </dd>
  837. <dl class="dl-horizontal">
  838. <dt>wand</dt>
  839. <dd>the pixel wand. </dd>
  840. <dd> </dd>
  841. <dt>count</dt>
  842. <dd>the number of this particular color. </dd>
  843. <dd> </dd>
  844. </dl>
  845. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetColorFromWand">PixelSetColorFromWand</a></h2>
  846. <p>PixelSetColorFromWand() sets the color of the pixel wand.</p>
  847. <p>The format of the PixelSetColorFromWand method is:</p>
  848. <pre class="bg-light text-dark mx-4"><samp>void PixelSetColorFromWand(PixelWand *wand,const PixelWand *color)
  849. </samp></pre>
  850. <p>A description of each parameter follows:</p>
  851. <dd>
  852. </dd>
  853. <dd> </dd>
  854. <dl class="dl-horizontal">
  855. <dt>wand</dt>
  856. <dd>the pixel wand. </dd>
  857. <dd> </dd>
  858. <dt>color</dt>
  859. <dd>set the pixel wand color here. </dd>
  860. <dd> </dd>
  861. </dl>
  862. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetCyan">PixelSetCyan</a></h2>
  863. <p>PixelSetCyan() sets the normalized cyan color of the pixel wand.</p>
  864. <p>The format of the PixelSetCyan method is:</p>
  865. <pre class="bg-light text-dark mx-4"><samp>void PixelSetCyan(PixelWand *wand,const double cyan)
  866. </samp></pre>
  867. <p>A description of each parameter follows:</p>
  868. <dd>
  869. </dd>
  870. <dd> </dd>
  871. <dl class="dl-horizontal">
  872. <dt>wand</dt>
  873. <dd>the pixel wand. </dd>
  874. <dd> </dd>
  875. <dt>cyan</dt>
  876. <dd>the cyan color. </dd>
  877. <dd> </dd>
  878. </dl>
  879. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetCyanQuantum">PixelSetCyanQuantum</a></h2>
  880. <p>PixelSetCyanQuantum() sets the cyan color of the pixel wand.</p>
  881. <p>The format of the PixelSetCyanQuantum method is:</p>
  882. <pre class="bg-light text-dark mx-4"><samp>void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan)
  883. </samp></pre>
  884. <p>A description of each parameter follows:</p>
  885. <dd>
  886. </dd>
  887. <dd> </dd>
  888. <dl class="dl-horizontal">
  889. <dt>wand</dt>
  890. <dd>the pixel wand. </dd>
  891. <dd> </dd>
  892. <dt>cyan</dt>
  893. <dd>the cyan color. </dd>
  894. <dd> </dd>
  895. </dl>
  896. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetFuzz">PixelSetFuzz</a></h2>
  897. <p>PixelSetFuzz() sets the fuzz value of the pixel wand.</p>
  898. <p>The format of the PixelSetFuzz method is:</p>
  899. <pre class="bg-light text-dark mx-4"><samp>void PixelSetFuzz(PixelWand *wand,const double fuzz)
  900. </samp></pre>
  901. <p>A description of each parameter follows:</p>
  902. <dd>
  903. </dd>
  904. <dd> </dd>
  905. <dl class="dl-horizontal">
  906. <dt>wand</dt>
  907. <dd>the pixel wand. </dd>
  908. <dd> </dd>
  909. <dt>fuzz</dt>
  910. <dd>the fuzz value. </dd>
  911. <dd> </dd>
  912. </dl>
  913. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetGreen">PixelSetGreen</a></h2>
  914. <p>PixelSetGreen() sets the normalized green color of the pixel wand.</p>
  915. <p>The format of the PixelSetGreen method is:</p>
  916. <pre class="bg-light text-dark mx-4"><samp>void PixelSetGreen(PixelWand *wand,const double green)
  917. </samp></pre>
  918. <p>A description of each parameter follows:</p>
  919. <dd>
  920. </dd>
  921. <dd> </dd>
  922. <dl class="dl-horizontal">
  923. <dt>wand</dt>
  924. <dd>the pixel wand. </dd>
  925. <dd> </dd>
  926. <dt>green</dt>
  927. <dd>the green color. </dd>
  928. <dd> </dd>
  929. </dl>
  930. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetGreenQuantum">PixelSetGreenQuantum</a></h2>
  931. <p>PixelSetGreenQuantum() sets the green color of the pixel wand.</p>
  932. <p>The format of the PixelSetGreenQuantum method is:</p>
  933. <pre class="bg-light text-dark mx-4"><samp>void PixelSetGreenQuantum(PixelWand *wand,const Quantum green)
  934. </samp></pre>
  935. <p>A description of each parameter follows:</p>
  936. <dd>
  937. </dd>
  938. <dd> </dd>
  939. <dl class="dl-horizontal">
  940. <dt>wand</dt>
  941. <dd>the pixel wand. </dd>
  942. <dd> </dd>
  943. <dt>green</dt>
  944. <dd>the green color. </dd>
  945. <dd> </dd>
  946. </dl>
  947. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetHSL">PixelSetHSL</a></h2>
  948. <p>PixelSetHSL() sets the normalized HSL color of the pixel wand.</p>
  949. <p>The format of the PixelSetHSL method is:</p>
  950. <pre class="bg-light text-dark mx-4"><samp>void PixelSetHSL(PixelWand *wand,const double hue,
  951. const double saturation,const double lightness)
  952. </samp></pre>
  953. <p>A description of each parameter follows:</p>
  954. <dd>
  955. </dd>
  956. <dd> </dd>
  957. <dl class="dl-horizontal">
  958. <dt>wand</dt>
  959. <dd>the pixel wand. </dd>
  960. <dd> </dd>
  961. <dt>hue,saturation,lightness</dt>
  962. <dd>Return the pixel hue, saturation, and brightness. </dd>
  963. <dd> </dd>
  964. </dl>
  965. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetIndex">PixelSetIndex</a></h2>
  966. <p>PixelSetIndex() sets the colormap index of the pixel wand.</p>
  967. <p>The format of the PixelSetIndex method is:</p>
  968. <pre class="bg-light text-dark mx-4"><samp>void PixelSetIndex(PixelWand *wand,const Quantum index)
  969. </samp></pre>
  970. <p>A description of each parameter follows:</p>
  971. <dd>
  972. </dd>
  973. <dd> </dd>
  974. <dl class="dl-horizontal">
  975. <dt>wand</dt>
  976. <dd>the pixel wand. </dd>
  977. <dd> </dd>
  978. <dt>index</dt>
  979. <dd>the colormap index. </dd>
  980. <dd> </dd>
  981. </dl>
  982. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetMagenta">PixelSetMagenta</a></h2>
  983. <p>PixelSetMagenta() sets the normalized magenta color of the pixel wand.</p>
  984. <p>The format of the PixelSetMagenta method is:</p>
  985. <pre class="bg-light text-dark mx-4"><samp>void PixelSetMagenta(PixelWand *wand,const double magenta)
  986. </samp></pre>
  987. <p>A description of each parameter follows:</p>
  988. <dd>
  989. </dd>
  990. <dd> </dd>
  991. <dl class="dl-horizontal">
  992. <dt>wand</dt>
  993. <dd>the pixel wand. </dd>
  994. <dd> </dd>
  995. <dt>magenta</dt>
  996. <dd>the magenta color. </dd>
  997. <dd> </dd>
  998. </dl>
  999. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></h2>
  1000. <p>PixelSetMagentaQuantum() sets the magenta color of the pixel wand.</p>
  1001. <p>The format of the PixelSetMagentaQuantum method is:</p>
  1002. <pre class="bg-light text-dark mx-4"><samp>void PixelSetMagentaQuantum(PixelWand *wand,
  1003. const Quantum magenta)
  1004. </samp></pre>
  1005. <p>A description of each parameter follows:</p>
  1006. <dd>
  1007. </dd>
  1008. <dd> </dd>
  1009. <dl class="dl-horizontal">
  1010. <dt>wand</dt>
  1011. <dd>the pixel wand. </dd>
  1012. <dd> </dd>
  1013. <dt>magenta</dt>
  1014. <dd>the green magenta. </dd>
  1015. <dd> </dd>
  1016. </dl>
  1017. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetPixelColor">PixelSetPixelColor</a></h2>
  1018. <p>PixelSetPixelColor() sets the color of the pixel wand.</p>
  1019. <p>The format of the PixelSetPixelColor method is:</p>
  1020. <pre class="bg-light text-dark mx-4"><samp>void PixelSetPixelColor(PixelWand *wand,const PixelInfo *color)
  1021. </samp></pre>
  1022. <p>A description of each parameter follows:</p>
  1023. <dd>
  1024. </dd>
  1025. <dd> </dd>
  1026. <dl class="dl-horizontal">
  1027. <dt>wand</dt>
  1028. <dd>the pixel wand. </dd>
  1029. <dd> </dd>
  1030. <dt>color</dt>
  1031. <dd>the pixel wand color. </dd>
  1032. <dd> </dd>
  1033. </dl>
  1034. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetQuantumPixel">PixelSetQuantumPixel</a></h2>
  1035. <p>PixelSetQuantumPixel() sets the pixel of the pixel wand.</p>
  1036. <p>The format of the PixelSetQuantumPixel method is:</p>
  1037. <pre class="bg-light text-dark mx-4"><samp>void PixelSetQuantumPixel(const Image *image,const Quantum *pixel,
  1038. PixelWand *wand)
  1039. </samp></pre>
  1040. <p>A description of each parameter follows:</p>
  1041. <dd>
  1042. </dd>
  1043. <dd> </dd>
  1044. <dl class="dl-horizontal">
  1045. <dt>wand</dt>
  1046. <dd>the pixel wand. </dd>
  1047. <dd> </dd>
  1048. <dt>pixel</dt>
  1049. <dd>the pixel wand pixel. </dd>
  1050. <dd> </dd>
  1051. </dl>
  1052. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetRed">PixelSetRed</a></h2>
  1053. <p>PixelSetRed() sets the normalized red color of the pixel wand.</p>
  1054. <p>The format of the PixelSetRed method is:</p>
  1055. <pre class="bg-light text-dark mx-4"><samp>void PixelSetRed(PixelWand *wand,const double red)
  1056. </samp></pre>
  1057. <p>A description of each parameter follows:</p>
  1058. <dd>
  1059. </dd>
  1060. <dd> </dd>
  1061. <dl class="dl-horizontal">
  1062. <dt>wand</dt>
  1063. <dd>the pixel wand. </dd>
  1064. <dd> </dd>
  1065. <dt>red</dt>
  1066. <dd>the red color. </dd>
  1067. <dd> </dd>
  1068. </dl>
  1069. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetRedQuantum">PixelSetRedQuantum</a></h2>
  1070. <p>PixelSetRedQuantum() sets the red color of the pixel wand.</p>
  1071. <p>The format of the PixelSetRedQuantum method is:</p>
  1072. <pre class="bg-light text-dark mx-4"><samp>void PixelSetRedQuantum(PixelWand *wand,const Quantum red)
  1073. </samp></pre>
  1074. <p>A description of each parameter follows:</p>
  1075. <dd>
  1076. </dd>
  1077. <dd> </dd>
  1078. <dl class="dl-horizontal">
  1079. <dt>wand</dt>
  1080. <dd>the pixel wand. </dd>
  1081. <dd> </dd>
  1082. <dt>red</dt>
  1083. <dd>the red color. </dd>
  1084. <dd> </dd>
  1085. </dl>
  1086. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetYellow">PixelSetYellow</a></h2>
  1087. <p>PixelSetYellow() sets the normalized yellow color of the pixel wand.</p>
  1088. <p>The format of the PixelSetYellow method is:</p>
  1089. <pre class="bg-light text-dark mx-4"><samp>void PixelSetYellow(PixelWand *wand,const double yellow)
  1090. </samp></pre>
  1091. <p>A description of each parameter follows:</p>
  1092. <dd>
  1093. </dd>
  1094. <dd> </dd>
  1095. <dl class="dl-horizontal">
  1096. <dt>wand</dt>
  1097. <dd>the pixel wand. </dd>
  1098. <dd> </dd>
  1099. <dt>yellow</dt>
  1100. <dd>the yellow color. </dd>
  1101. <dd> </dd>
  1102. </dl>
  1103. <h2><a href="../../api/MagickWand/pixel-wand_8c.html" id="PixelSetYellowQuantum">PixelSetYellowQuantum</a></h2>
  1104. <p>PixelSetYellowQuantum() sets the yellow color of the pixel wand.</p>
  1105. <p>The format of the PixelSetYellowQuantum method is:</p>
  1106. <pre class="bg-light text-dark mx-4"><samp>void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow)
  1107. </samp></pre>
  1108. <p>A description of each parameter follows:</p>
  1109. <dd>
  1110. </dd>
  1111. <dd> </dd>
  1112. <dl class="dl-horizontal">
  1113. <dt>wand</dt>
  1114. <dd>the pixel wand. </dd>
  1115. <dd> </dd>
  1116. <dt>yellow</dt>
  1117. <dd>the yellow color. </dd>
  1118. <dd> </dd>
  1119. </dl>
  1120. </div>
  1121. </div>
  1122. </main><!-- /.container -->
  1123. <footer class="magick-footer">
  1124. <div class="container-fluid">
  1125. <a href="../../www/security-policy.html">Security</a> •
  1126. <a href="../../www/news.html">News</a>
  1127. <a href="pixel-wand.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../../../images/wand.ico"/></a>
  1128. <a href="../../www/links.html">Related</a> •
  1129. <a href="../../www/sitemap.html">Sitemap</a>
  1130. <br/>
  1131. <a href="../../www/support.html">Sponsor</a> •
  1132. <a href="../../www/cite.html">Cite</a> •
  1133. <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
  1134. <a href="../../www/contact.html">Contact Us</a>
  1135. <br/>
  1136. <a href="https://github.com/imagemagick/imagemagick" target="_blank" rel="noopener" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" width="2%" height="2%" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg></a> •
  1137. <a href="https://twitter.com/imagemagick" target="_blank" rel="noopener" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 300 300" width="2%" height="2%" role="img" focusable="false"><title>Twitter</title><path d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"/></svg></a>
  1138. <br/>
  1139. <small>Copyright © 1999 ImageMagick Studio LLC</small>
  1140. </div>
  1141. </footer>
  1142. <!-- Javascript assets -->
  1143. <script src="../../assets/magick.js" ></script>
  1144. </body>
  1145. </html>