blob: bc50770e8366711d556b858aacf07f58b206a121 [file] [log] [blame]
cristydcca3fa2010-12-29 21:50:07 +00001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
cristy2bd2a982011-02-15 00:52:58 +00003<html version="-//W3C//DTD XHTML 1.1//EN"
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
cristy3eaa0ef2010-03-06 20:35:26 +00008<head>
cristy3c98a4f2010-08-13 20:09:41 +00009 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
10 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
cristyffb69ed2010-12-25 00:06:48 +000011 <title>ImageMagick: MagickWand, C API for ImageMagick: Pixel Wand Methods</title>
cristy3ed852e2009-09-05 21:47:34 +000012 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
cristy3c98a4f2010-08-13 20:09:41 +000015 <meta name="Application-name" content="ImageMagick"/>
cristyaf8d6652011-02-04 21:57:45 +000016 <meta name="Description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images."/>
cristy3c98a4f2010-08-13 20:09:41 +000017 <meta name="Application-url" content="http://www.imagemagick.org"/>
cristy3ed852e2009-09-05 21:47:34 +000018 <meta name="Generator" content="PHP"/>
19 <meta name="Keywords" content="magickwc, api, for, imagemagick:, pixel, wmethods, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
cristy3ed852e2009-09-05 21:47:34 +000020 <meta name="Rating" content="GENERAL"/>
21 <meta name="Robots" content="INDEX, FOLLOW"/>
22 <meta name="Generator" content="ImageMagick Studio LLC"/>
23 <meta name="Author" content="ImageMagick Studio LLC"/>
24 <meta name="Revisit-after" content="2 DAYS"/>
25 <meta name="Resource-type" content="document"/>
cristy4103d562010-12-10 01:38:54 +000026 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
cristy3ed852e2009-09-05 21:47:34 +000027 <meta name="Distribution" content="Global"/>
cristydcca3fa2010-12-29 21:50:07 +000028 <link rel="icon" href="../../images/wand.png"/>
cristy3c98a4f2010-08-13 20:09:41 +000029 <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
30 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
cristy7a40ba82011-01-08 20:31:18 +000031 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
cristy3c98a4f2010-08-13 20:09:41 +000032 <style type="text/css" media="all">
33 @import url("../../www/magick.css");
34 </style>
cristydcca3fa2010-12-29 21:50:07 +000035 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
cristy361f4662010-12-31 23:02:52 +000036 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
37 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
38 <script type="text/javascript">
39 $(document).ready(function() {
40 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
41 'transitionIn' : 'elastic',
42 'transitionOut' : 'elastic',
43 'overlayShow' : false,
44 'opacity' : true
45 });
46 });
47 </script>
cristy3eaa0ef2010-03-06 20:35:26 +000048</head>
49
50<body id="www-imagemagick-org">
51<div class="titlebar">
cristyb52981c2011-03-19 17:09:31 +000052<div style="margin: 17px auto; float: left;">
53 <script type="text/javascript">
54 <!--
55 google_ad_client = "pub-3129977114552745";
56 google_ad_slot = "5439289906";
57 google_ad_width = 728;
58 google_ad_height = 90;
59 //-->
60 </script>
61 <script type="text/javascript"
62 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
63 </script>
64</div>
cristy3eaa0ef2010-03-06 20:35:26 +000065<a href="http://www.imagemagick.org/discourse-server/">
cristyaf8d6652011-02-04 21:57:45 +000066 <img src="../../images/logo.jpg"
67 alt="ImageMagick Logo"
cristy178edaf2011-01-23 03:42:39 +000068 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
cristy3eaa0ef2010-03-06 20:35:26 +000069<a href="../../index.html">
cristyaf8d6652011-02-04 21:57:45 +000070 <img src="../../images/sprite.jpg"
71 alt="ImageMagick Sprite"
cristy3eaa0ef2010-03-06 20:35:26 +000072 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
73</div>
74
cristyce69bb02010-07-27 19:49:46 +000075<div class="westbar">
cristy3eaa0ef2010-03-06 20:35:26 +000076
cristy3ed852e2009-09-05 21:47:34 +000077<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000078 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
cristy3ed852e2009-09-05 21:47:34 +000079</div>
cristy3eaa0ef2010-03-06 20:35:26 +000080<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +000081<div class="menu">
cristybb503372010-05-27 20:51:26 +000082 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
83</div>
84<div class="sub">
85 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
86</div>
87<div class="sub">
88 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
89</div>
90<div class="sub">
cristyda16f162011-02-19 23:52:17 +000091 <a title="Binary Release: iPhone" href="../../www/binary-releases.html#iPhone">iPhone</a>
92</div>
93<div class="sub">
cristybb503372010-05-27 20:51:26 +000094 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
95</div>
96<div class="sep"></div>
97<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000098 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
cristy3ed852e2009-09-05 21:47:34 +000099</div>
100<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000101 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
cristy3ed852e2009-09-05 21:47:34 +0000102</div>
103<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000104 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
cristy3ed852e2009-09-05 21:47:34 +0000105</div>
106<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000107 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
cristy3ed852e2009-09-05 21:47:34 +0000108</div>
109<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000110 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
cristy3ed852e2009-09-05 21:47:34 +0000111</div>
112<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000113 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
cristy3ed852e2009-09-05 21:47:34 +0000114</div>
115<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000116 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
cristy3ed852e2009-09-05 21:47:34 +0000117</div>
118<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000119 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
cristy3ed852e2009-09-05 21:47:34 +0000120</div>
121<div class="sub">
cristydcca3fa2010-12-29 21:50:07 +0000122 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
cristy3ed852e2009-09-05 21:47:34 +0000123</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000124<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000125<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000126 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
cristy3ed852e2009-09-05 21:47:34 +0000127</div>
128<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000129 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
cristy3ed852e2009-09-05 21:47:34 +0000130</div>
131<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000132 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
cristy3ed852e2009-09-05 21:47:34 +0000133 </div>
134<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000135 <a title="Resources" href="../../www/resources.html">Resources</a>
cristy3ed852e2009-09-05 21:47:34 +0000136</div>
cristybb503372010-05-27 20:51:26 +0000137<div class="menu">
138 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
139</div>
cristy3ed852e2009-09-05 21:47:34 +0000140<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000141 <a title="Download" href="../../www/download.html">Download</a>
cristy3ed852e2009-09-05 21:47:34 +0000142</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000143<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000144<div class="menu">
cristy52923442011-01-15 22:54:31 +0000145 <a title="Search" href="../../www/search.html">Search</a>
cristy3ed852e2009-09-05 21:47:34 +0000146</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000147<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000148<div class="menu">
cristyffb69ed2010-12-25 00:06:48 +0000149 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
cristy3ed852e2009-09-05 21:47:34 +0000150</div>
151<div class="sub">
cristyffb69ed2010-12-25 00:06:48 +0000152 <a title="Site Map: Links" href="../../www/links.html">Links</a>
cristy3ed852e2009-09-05 21:47:34 +0000153</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000154<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000155<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000156 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
cristy3ed852e2009-09-05 21:47:34 +0000157
cristyb52981c2011-03-19 17:09:31 +0000158<a href="http://www.networkredux.com">
159 <img src="../../images/networkredux.png" alt="[sponsor]"
160 style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a>
cristy3ed852e2009-09-05 21:47:34 +0000161<div class="sponsbox">
cristy178edaf2011-01-23 03:42:39 +0000162<div class="sponsor">
cristybaacd172011-04-30 23:11:03 +0000163 <a title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201109010090 alexanian media -->
cristy45dbd322011-03-27 16:40:38 +0000164</div>
165<div class="sponsor">
cristy4c54bbb2011-03-17 13:53:13 +0000166 <a title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
167</div>
168<div class="sponsor">
cristyf9a6c462011-04-24 14:01:11 +0000169 <a title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
cristyaf8d6652011-02-04 21:57:45 +0000170</div>
171<div class="sponsor">
cristyee742642011-02-26 02:49:59 +0000172 <a title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
cristy7d52cd62010-10-01 17:26:59 +0000173</div>
174<div class="sponsor">
cristyf9a6c462011-04-24 14:01:11 +0000175 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
cristyee742642011-02-26 02:49:59 +0000176</div>
177<div class="sponsor">
cristybaacd172011-04-30 23:11:03 +0000178 <a title="Sponsor: Web Hosting Reviews" href="http://www.webhostingmasters.com">Web Hosting Reviews</a><!-- 201107011500 affliatelabel -->
cristy851dbce2010-08-06 21:40:00 +0000179</div>
cristyec6b4752011-01-08 03:16:23 +0000180<div class="sponsor">
cristy178edaf2011-01-23 03:42:39 +0000181 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
182</div>
183<div class="sponsor">
cristybaacd172011-04-30 23:11:03 +0000184 <a title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
185</div>
186<div class="sponsor">
cristy01e4fbf2011-05-01 03:28:21 +0000187 <a title="Sponsor: Free Catalogs" href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 20120801000600 -->
cristyec6b4752011-01-08 03:16:23 +0000188</div>
cristy3ed852e2009-09-05 21:47:34 +0000189</div>
190</div>
cristyce69bb02010-07-27 19:49:46 +0000191</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000192
cristyce69bb02010-07-27 19:49:46 +0000193<div class="eastbar">
cristyb52981c2011-03-19 17:09:31 +0000194
cristy3eaa0ef2010-03-06 20:35:26 +0000195</div>
196
197<div class="main">
198
cristy350dea42011-02-15 17:31:04 +0000199<h1>Module pixel-wand Methods</h1>
cristy6f77f692011-02-15 15:31:39 +0000200<p class="navigation-index">[<a href="#ClearPixelWand">ClearPixelWand</a> &bull; <a href="#ClonePixelWand">ClonePixelWand</a> &bull; <a href="#ClonePixelWands">ClonePixelWands</a> &bull; <a href="#DestroyPixelWand">DestroyPixelWand</a> &bull; <a href="#DestroyPixelWands">DestroyPixelWands</a> &bull; <a href="#IsPixelWandSimilar">IsPixelWandSimilar</a> &bull; <a href="#IsPixelWand">IsPixelWand</a> &bull; <a href="#NewPixelWand">NewPixelWand</a> &bull; <a href="#NewPixelWands">NewPixelWands</a> &bull; <a href="#PixelClearException">PixelClearException</a> &bull; <a href="#PixelGetAlpha">PixelGetAlpha</a> &bull; <a href="#PixelGetAlphaQuantum">PixelGetAlphaQuantum</a> &bull; <a href="#PixelGetBlack">PixelGetBlack</a> &bull; <a href="#PixelGetBlackQuantum">PixelGetBlackQuantum</a> &bull; <a href="#PixelGetBlue">PixelGetBlue</a> &bull; <a href="#PixelGetBlueQuantum">PixelGetBlueQuantum</a> &bull; <a href="#PixelGetColorAsString">PixelGetColorAsString</a> &bull; <a href="#PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a> &bull; <a href="#PixelGetColorCount">PixelGetColorCount</a> &bull; <a href="#PixelGetCyan">PixelGetCyan</a> &bull; <a href="#PixelGetCyanQuantum">PixelGetCyanQuantum</a> &bull; <a href="#PixelGetException">PixelGetException</a> &bull; <a href="#PixelGetExceptionType">PixelGetExceptionType</a> &bull; <a href="#PixelGetFuzz">PixelGetFuzz</a> &bull; <a href="#PixelGetGreen">PixelGetGreen</a> &bull; <a href="#PixelGetGreenQuantum">PixelGetGreenQuantum</a> &bull; <a href="#PixelGetHSL">PixelGetHSL</a> &bull; <a href="#PixelGetIndex">PixelGetIndex</a> &bull; <a href="#PixelGetMagenta">PixelGetMagenta</a> &bull; <a href="#PixelGetMagentaQuantum">PixelGetMagentaQuantum</a> &bull; <a href="#PixelGetMagickColor">PixelGetMagickColor</a> &bull; <a href="#PixelGetOpacity">PixelGetOpacity</a> &bull; <a href="#PixelGetOpacityQuantum">PixelGetOpacityQuantum</a> &bull; <a href="#PixelGetQuantumColor">PixelGetQuantumColor</a> &bull; <a href="#PixelGetRed">PixelGetRed</a> &bull; <a href="#PixelGetRedQuantum">PixelGetRedQuantum</a> &bull; <a href="#PixelGetYellow">PixelGetYellow</a> &bull; <a href="#PixelGetYellowQuantum">PixelGetYellowQuantum</a> &bull; <a href="#PixelSetAlpha">PixelSetAlpha</a> &bull; <a href="#PixelSetAlphaQuantum">PixelSetAlphaQuantum</a> &bull; <a href="#PixelSetBlack">PixelSetBlack</a> &bull; <a href="#PixelSetBlackQuantum">PixelSetBlackQuantum</a> &bull; <a href="#PixelSetBlue">PixelSetBlue</a> &bull; <a href="#PixelSetBlueQuantum">PixelSetBlueQuantum</a> &bull; <a href="#PixelSetColor">PixelSetColor</a> &bull; <a href="#PixelSetColorCount">PixelSetColorCount</a> &bull; <a href="#PixelSetColorFromWand">PixelSetColorFromWand</a> &bull; <a href="#PixelSetCyan">PixelSetCyan</a> &bull; <a href="#PixelSetCyanQuantum">PixelSetCyanQuantum</a> &bull; <a href="#PixelSetFuzz">PixelSetFuzz</a> &bull; <a href="#PixelSetGreen">PixelSetGreen</a> &bull; <a href="#PixelSetGreenQuantum">PixelSetGreenQuantum</a> &bull; <a href="#PixelSetHSL">PixelSetHSL</a> &bull; <a href="#PixelSetIndex">PixelSetIndex</a> &bull; <a href="#PixelSetMagenta">PixelSetMagenta</a> &bull; <a href="#PixelSetMagentaQuantum">PixelSetMagentaQuantum</a> &bull; <a href="#PixelSetMagickColor">PixelSetMagickColor</a> &bull; <a href="#PixelSetOpacity">PixelSetOpacity</a> &bull; <a href="#PixelSetOpacityQuantum">PixelSetOpacityQuantum</a> &bull; <a href="#PixelSetQuantumColor">PixelSetQuantumColor</a> &bull; <a href="#PixelSetRed">PixelSetRed</a> &bull; <a href="#PixelSetRedQuantum">PixelSetRedQuantum</a> &bull; <a href="#PixelSetYellow">PixelSetYellow</a> &bull; <a href="#PixelSetYellowQuantum">PixelSetYellowQuantum</a>]</p>
cristy3ed852e2009-09-05 21:47:34 +0000201
cristy350dea42011-02-15 17:31:04 +0000202<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClearPixelWand">ClearPixelWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000203<div class="doc-section">
204
205<p>ClearPixelWand() clears resources associated with the wand.</p>
206
207<p>The format of the ClearPixelWand method is:</p>
208
209<pre class="code">
210 void ClearPixelWand(PixelWand *wand)
211</pre>
212
213<p>A description of each parameter follows:</p>
214
215<h5>wand</h5>
216<p>the pixel wand.</p>
217
218 </div>
cristy350dea42011-02-15 17:31:04 +0000219<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWand">ClonePixelWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000220<div class="doc-section">
221
222<p>ClonePixelWand() makes an exact copy of the specified wand.</p>
223
224<p>The format of the ClonePixelWand method is:</p>
225
226<pre class="code">
227 PixelWand *ClonePixelWand(const PixelWand *wand)
228</pre>
229
230<p>A description of each parameter follows:</p>
231
232<h5>wand</h5>
233<p>the magick wand.</p>
234
235 </div>
cristy350dea42011-02-15 17:31:04 +0000236<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWands">ClonePixelWands</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000237<div class="doc-section">
238
239<p>ClonePixelWands() makes an exact copy of the specified wands.</p>
240
241<p>The format of the ClonePixelWands method is:</p>
242
243<pre class="code">
244 PixelWand **ClonePixelWands(const PixelWand **wands,
245 const size_t number_wands)
246</pre>
247
248<p>A description of each parameter follows:</p>
249
250<h5>wands</h5>
251<p>the magick wands.</p>
252
253<h5>number_wands</h5>
254<p>the number of wands.</p>
255
256 </div>
cristy350dea42011-02-15 17:31:04 +0000257<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWand">DestroyPixelWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000258<div class="doc-section">
259
260<p>DestroyPixelWand() deallocates resources associated with a PixelWand.</p>
261
262<p>The format of the DestroyPixelWand method is:</p>
263
264<pre class="code">
265 PixelWand *DestroyPixelWand(PixelWand *wand)
266</pre>
267
268<p>A description of each parameter follows:</p>
269
270<h5>wand</h5>
271<p>the pixel wand.</p>
272
273 </div>
cristy350dea42011-02-15 17:31:04 +0000274<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWands">DestroyPixelWands</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000275<div class="doc-section">
276
277<p>DestroyPixelWands() deallocates resources associated with an array of pixel wands.</p>
278
279<p>The format of the DestroyPixelWands method is:</p>
280
281<pre class="code">
282 PixelWand **DestroyPixelWands(PixelWand **wand,
283 const size_t number_wands)
284</pre>
285
286<p>A description of each parameter follows:</p>
287
288<h5>wand</h5>
289<p>the pixel wand.</p>
290
291<h5>number_wands</h5>
292<p>the number of wands.</p>
293
294 </div>
cristy350dea42011-02-15 17:31:04 +0000295<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWandSimilar">IsPixelWandSimilar</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000296<div class="doc-section">
297
298<p>IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.</p>
299
300<p>The format of the IsPixelWandSimilar method is:</p>
301
302<pre class="code">
303 MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q,
304 const double fuzz)
305</pre>
306
307<p>A description of each parameter follows:</p>
308
309<h5>p</h5>
310<p>the pixel wand.</p>
311
312<h5>q</h5>
313<p>the pixel wand.</p>
314
315<h5>fuzz</h5>
316<p>any two colors that are less than or equal to this distance squared are consider similar.</p>
317
318 </div>
cristy350dea42011-02-15 17:31:04 +0000319<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWand">IsPixelWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000320<div class="doc-section">
321
322<p>IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.</p>
323
324<p>The format of the IsPixelWand method is:</p>
325
326<pre class="code">
327 MagickBooleanType IsPixelWand(const PixelWand *wand)
328</pre>
329
330<p>A description of each parameter follows:</p>
331
332<h5>wand</h5>
333<p>the magick wand.</p>
334
335 </div>
cristy350dea42011-02-15 17:31:04 +0000336<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWand">NewPixelWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000337<div class="doc-section">
338
339<p>NewPixelWand() returns a new pixel wand.</p>
340
341<p>The format of the NewPixelWand method is:</p>
342
343<pre class="code">
344 PixelWand *NewPixelWand(void)
345</pre>
346
347 </div>
cristy350dea42011-02-15 17:31:04 +0000348<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWands">NewPixelWands</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000349<div class="doc-section">
350
351<p>NewPixelWands() returns an array of pixel wands.</p>
352
353<p>The format of the NewPixelWands method is:</p>
354
355<pre class="code">
356 PixelWand **NewPixelWands(const size_t number_wands)
357</pre>
358
359<p>A description of each parameter follows:</p>
360
361<h5>number_wands</h5>
362<p>the number of wands.</p>
363
364 </div>
cristy350dea42011-02-15 17:31:04 +0000365<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelClearException">PixelClearException</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000366<div class="doc-section">
367
368<p>PixelClearException() clear any exceptions associated with the iterator.</p>
369
370<p>The format of the PixelClearException method is:</p>
371
372<pre class="code">
373 MagickBooleanType PixelClearException(PixelWand *wand)
374</pre>
375
376<p>A description of each parameter follows:</p>
377
378<h5>wand</h5>
379<p>the pixel wand.</p>
380
381 </div>
cristy350dea42011-02-15 17:31:04 +0000382<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlpha">PixelGetAlpha</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000383<div class="doc-section">
384
385<p>PixelGetAlpha() returns the normalized alpha color of the pixel wand.</p>
386
387<p>The format of the PixelGetAlpha method is:</p>
388
389<pre class="code">
390 double PixelGetAlpha(const PixelWand *wand)
391</pre>
392
393<p>A description of each parameter follows:</p>
394
395<h5>wand</h5>
396<p>the pixel wand.</p>
397
398 </div>
cristy350dea42011-02-15 17:31:04 +0000399<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000400<div class="doc-section">
401
402<p>PixelGetAlphaQuantum() returns the alpha value of the pixel wand.</p>
403
404<p>The format of the PixelGetAlphaQuantum method is:</p>
405
406<pre class="code">
407 Quantum PixelGetAlphaQuantum(const PixelWand *wand)
408</pre>
409
410<p>A description of each parameter follows:</p>
411
412<h5>wand</h5>
413<p>the pixel wand.</p>
414
415 </div>
cristy350dea42011-02-15 17:31:04 +0000416<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlack">PixelGetBlack</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000417<div class="doc-section">
418
419<p>PixelGetBlack() returns the normalized black color of the pixel wand.</p>
420
421<p>The format of the PixelGetBlack method is:</p>
422
423<pre class="code">
424 double PixelGetBlack(const PixelWand *wand)
425</pre>
426
427<p>A description of each parameter follows:</p>
428
429<h5>wand</h5>
430<p>the pixel wand.</p>
431
432 </div>
cristy350dea42011-02-15 17:31:04 +0000433<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlackQuantum">PixelGetBlackQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000434<div class="doc-section">
435
436<p>PixelGetBlackQuantum() returns the black color of the pixel wand.</p>
437
438<p>The format of the PixelGetBlackQuantum method is:</p>
439
440<pre class="code">
441 Quantum PixelGetBlackQuantum(const PixelWand *wand)
442</pre>
443
444<p>A description of each parameter follows:</p>
445
446<h5>wand</h5>
447<p>the pixel wand.</p>
448
449 </div>
cristy350dea42011-02-15 17:31:04 +0000450<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlue">PixelGetBlue</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000451<div class="doc-section">
452
453<p>PixelGetBlue() returns the normalized blue color of the pixel wand.</p>
454
455<p>The format of the PixelGetBlue method is:</p>
456
457<pre class="code">
458 double PixelGetBlue(const PixelWand *wand)
459</pre>
460
461<p>A description of each parameter follows:</p>
462
463<h5>wand</h5>
464<p>the pixel wand.</p>
465
466 </div>
cristy350dea42011-02-15 17:31:04 +0000467<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlueQuantum">PixelGetBlueQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000468<div class="doc-section">
469
470<p>PixelGetBlueQuantum() returns the blue color of the pixel wand.</p>
471
472<p>The format of the PixelGetBlueQuantum method is:</p>
473
474<pre class="code">
475 Quantum PixelGetBlueQuantum(const PixelWand *wand)
476</pre>
477
478<p>A description of each parameter follows:</p>
479
480<h5>wand</h5>
481<p>the pixel wand.</p>
482
483 </div>
cristy350dea42011-02-15 17:31:04 +0000484<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsString">PixelGetColorAsString</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000485<div class="doc-section">
486
487<p>PixelGetColorAsString() returnsd the color of the pixel wand as a string.</p>
488
489<p>The format of the PixelGetColorAsString method is:</p>
490
491<pre class="code">
492 char *PixelGetColorAsString(PixelWand *wand)
493</pre>
494
495<p>A description of each parameter follows:</p>
496
497<h5>wand</h5>
498<p>the pixel wand.</p>
499
500 </div>
cristy350dea42011-02-15 17:31:04 +0000501<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000502<div class="doc-section">
503
504<p>PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.</p>
505
506<p>The format of the PixelGetColorAsNormalizedString method is:</p>
507
508<pre class="code">
509 char *PixelGetColorAsNormalizedString(PixelWand *wand)
510</pre>
511
512<p>A description of each parameter follows:</p>
513
514<h5>wand</h5>
515<p>the pixel wand.</p>
516
517 </div>
cristy350dea42011-02-15 17:31:04 +0000518<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorCount">PixelGetColorCount</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000519<div class="doc-section">
520
521<p>PixelGetColorCount() returns the color count associated with this color.</p>
522
523<p>The format of the PixelGetColorCount method is:</p>
524
525<pre class="code">
526 size_t PixelGetColorCount(const PixelWand *wand)
527</pre>
528
529<p>A description of each parameter follows:</p>
530
531<h5>wand</h5>
532<p>the pixel wand.</p>
533
534 </div>
cristy350dea42011-02-15 17:31:04 +0000535<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyan">PixelGetCyan</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000536<div class="doc-section">
537
538<p>PixelGetCyan() returns the normalized cyan color of the pixel wand.</p>
539
540<p>The format of the PixelGetCyan method is:</p>
541
542<pre class="code">
543 double PixelGetCyan(const PixelWand *wand)
544</pre>
545
546<p>A description of each parameter follows:</p>
547
548<h5>wand</h5>
549<p>the pixel wand.</p>
550
551 </div>
cristy350dea42011-02-15 17:31:04 +0000552<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyanQuantum">PixelGetCyanQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000553<div class="doc-section">
554
555<p>PixelGetCyanQuantum() returns the cyan color of the pixel wand.</p>
556
557<p>The format of the PixelGetCyanQuantum method is:</p>
558
559<pre class="code">
560 Quantum PixelGetCyanQuantum(const PixelWand *wand)
561</pre>
562
563<p>A description of each parameter follows:</p>
564
565<h5>wand</h5>
566<p>the pixel wand.</p>
567
568 </div>
cristy350dea42011-02-15 17:31:04 +0000569<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetException">PixelGetException</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000570<div class="doc-section">
571
572<p>PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
573
574<p>The format of the PixelGetException method is:</p>
575
576<pre class="code">
577 char *PixelGetException(const PixelWand *wand,ExceptionType *severity)
578</pre>
579
580<p>A description of each parameter follows:</p>
581
582<h5>wand</h5>
583<p>the pixel wand.</p>
584
585<h5>severity</h5>
586<p>the severity of the error is returned here.</p>
587
588 </div>
cristy350dea42011-02-15 17:31:04 +0000589<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetExceptionType">PixelGetExceptionType</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000590<div class="doc-section">
591
592<p>PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
593
594<p>The format of the PixelGetExceptionType method is:</p>
595
596<pre class="code">
597 ExceptionType PixelGetExceptionType(const PixelWand *wand)
598</pre>
599
600<p>A description of each parameter follows:</p>
601
602<h5>wand</h5>
603<p>the magick wand.</p>
604
605 </div>
cristy350dea42011-02-15 17:31:04 +0000606<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetFuzz">PixelGetFuzz</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000607<div class="doc-section">
608
609<p>PixelGetFuzz() returns the normalized fuzz value of the pixel wand.</p>
610
611<p>The format of the PixelGetFuzz method is:</p>
612
613<pre class="code">
614 double PixelGetFuzz(const PixelWand *wand)
615</pre>
616
617<p>A description of each parameter follows:</p>
618
619<h5>wand</h5>
620<p>the pixel wand.</p>
621
622 </div>
cristy350dea42011-02-15 17:31:04 +0000623<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreen">PixelGetGreen</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000624<div class="doc-section">
625
626<p>PixelGetGreen() returns the normalized green color of the pixel wand.</p>
627
628<p>The format of the PixelGetGreen method is:</p>
629
630<pre class="code">
631 double PixelGetGreen(const PixelWand *wand)
632</pre>
633
634<p>A description of each parameter follows:</p>
635
636<h5>wand</h5>
637<p>the pixel wand.</p>
638
639 </div>
cristy350dea42011-02-15 17:31:04 +0000640<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreenQuantum">PixelGetGreenQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000641<div class="doc-section">
642
643<p>PixelGetGreenQuantum() returns the green color of the pixel wand.</p>
644
645<p>The format of the PixelGetGreenQuantum method is:</p>
646
647<pre class="code">
648 Quantum PixelGetGreenQuantum(const PixelWand *wand)
649</pre>
650
651<p>A description of each parameter follows:</p>
652
653<h5>wand</h5>
654<p>the pixel wand.</p>
655
656 </div>
cristy350dea42011-02-15 17:31:04 +0000657<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetHSL">PixelGetHSL</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000658<div class="doc-section">
659
660<p>PixelGetHSL() returns the normalized HSL color of the pixel wand.</p>
661
662<p>The format of the PixelGetHSL method is:</p>
663
664<pre class="code">
665 void PixelGetHSL(const PixelWand *wand,double *hue,double *saturation,
666 double *lightness)
667</pre>
668
669<p>A description of each parameter follows:</p>
670
671<h5>wand</h5>
672<p>the pixel wand.</p>
673
674<h5>hue,saturation,lightness</h5>
675<p>Return the pixel hue, saturation, and brightness.</p>
676
677 </div>
cristy350dea42011-02-15 17:31:04 +0000678<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetIndex">PixelGetIndex</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000679<div class="doc-section">
680
681<p>PixelGetIndex() returns the colormap index from the pixel wand.</p>
682
683<p>The format of the PixelGetIndex method is:</p>
684
685<pre class="code">
686 IndexPacket PixelGetIndex(const PixelWand *wand)
687</pre>
688
689<p>A description of each parameter follows:</p>
690
691<h5>wand</h5>
692<p>the pixel wand.</p>
693
694 </div>
cristy350dea42011-02-15 17:31:04 +0000695<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagenta">PixelGetMagenta</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000696<div class="doc-section">
697
698<p>PixelGetMagenta() returns the normalized magenta color of the pixel wand.</p>
699
700<p>The format of the PixelGetMagenta method is:</p>
701
702<pre class="code">
703 double PixelGetMagenta(const PixelWand *wand)
704</pre>
705
706<p>A description of each parameter follows:</p>
707
708<h5>wand</h5>
709<p>the pixel wand.</p>
710
711 </div>
cristy350dea42011-02-15 17:31:04 +0000712<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000713<div class="doc-section">
714
715<p>PixelGetMagentaQuantum() returns the magenta color of the pixel wand.</p>
716
717<p>The format of the PixelGetMagentaQuantum method is:</p>
718
719<pre class="code">
720 Quantum PixelGetMagentaQuantum(const PixelWand *wand)
721</pre>
722
723<p>A description of each parameter follows:</p>
724
725<h5>wand</h5>
726<p>the pixel wand.</p>
727
728 </div>
cristy350dea42011-02-15 17:31:04 +0000729<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagickColor">PixelGetMagickColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000730<div class="doc-section">
731
732<p>PixelGetMagickColor() gets the magick color of the pixel wand.</p>
733
734<p>The format of the PixelGetMagickColor method is:</p>
735
736<pre class="code">
737 void PixelGetMagickColor(PixelWand *wand,MagickPixelPacket *color)
738</pre>
739
740<p>A description of each parameter follows:</p>
741
742<h5>wand</h5>
743<p>the pixel wand.</p>
744
745<h5>color</h5>
746<p>The pixel wand color is returned here.</p>
747
748 </div>
cristy350dea42011-02-15 17:31:04 +0000749<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacity">PixelGetOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000750<div class="doc-section">
751
752<p>PixelGetOpacity() returns the normalized opacity color of the pixel wand.</p>
753
754<p>The format of the PixelGetOpacity method is:</p>
755
756<pre class="code">
757 double PixelGetOpacity(const PixelWand *wand)
758</pre>
759
760<p>A description of each parameter follows:</p>
761
762<h5>wand</h5>
763<p>the pixel wand.</p>
764
765 </div>
cristy350dea42011-02-15 17:31:04 +0000766<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacityQuantum">PixelGetOpacityQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000767<div class="doc-section">
768
769<p>PixelGetOpacityQuantum() returns the opacity color of the pixel wand.</p>
770
771<p>The format of the PixelGetOpacityQuantum method is:</p>
772
773<pre class="code">
774 Quantum PixelGetOpacityQuantum(const PixelWand *wand)
775</pre>
776
777<p>A description of each parameter follows:</p>
778
779<h5>wand</h5>
780<p>the pixel wand.</p>
781
782 </div>
cristy350dea42011-02-15 17:31:04 +0000783<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumColor">PixelGetQuantumColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000784<div class="doc-section">
785
786<p>PixelGetQuantumColor() gets the color of the pixel wand as a PixelPacket.</p>
787
788<p>The format of the PixelGetQuantumColor method is:</p>
789
790<pre class="code">
791 void PixelGetQuantumColor(PixelWand *wand,PixelPacket *color)
792</pre>
793
794<p>A description of each parameter follows:</p>
795
796<h5>wand</h5>
797<p>the pixel wand.</p>
798
799<h5>color</h5>
800<p>The pixel wand color is returned here.</p>
801
802 </div>
cristy350dea42011-02-15 17:31:04 +0000803<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRed">PixelGetRed</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000804<div class="doc-section">
805
806<p>PixelGetRed() returns the normalized red color of the pixel wand.</p>
807
808<p>The format of the PixelGetRed method is:</p>
809
810<pre class="code">
811 double PixelGetRed(const PixelWand *wand)
812</pre>
813
814<p>A description of each parameter follows:</p>
815
816<h5>wand</h5>
817<p>the pixel wand.</p>
818
819 </div>
cristy350dea42011-02-15 17:31:04 +0000820<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRedQuantum">PixelGetRedQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000821<div class="doc-section">
822
823<p>PixelGetRedQuantum() returns the red color of the pixel wand.</p>
824
825<p>The format of the PixelGetRedQuantum method is:</p>
826
827<pre class="code">
828 Quantum PixelGetRedQuantum(const PixelWand *wand)
829</pre>
830
831<p>A description of each parameter follows:</p>
832
833<h5>wand</h5>
834<p>the pixel wand.</p>
835
836 </div>
cristy350dea42011-02-15 17:31:04 +0000837<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellow">PixelGetYellow</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000838<div class="doc-section">
839
840<p>PixelGetYellow() returns the normalized yellow color of the pixel wand.</p>
841
842<p>The format of the PixelGetYellow method is:</p>
843
844<pre class="code">
845 double PixelGetYellow(const PixelWand *wand)
846</pre>
847
848<p>A description of each parameter follows:</p>
849
850<h5>wand</h5>
851<p>the pixel wand.</p>
852
853 </div>
cristy350dea42011-02-15 17:31:04 +0000854<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellowQuantum">PixelGetYellowQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000855<div class="doc-section">
856
857<p>PixelGetYellowQuantum() returns the yellow color of the pixel wand.</p>
858
859<p>The format of the PixelGetYellowQuantum method is:</p>
860
861<pre class="code">
862 Quantum PixelGetYellowQuantum(const PixelWand *wand)
863</pre>
864
865<p>A description of each parameter follows:</p>
866
867<h5>wand</h5>
868<p>the pixel wand.</p>
869
870 </div>
cristy350dea42011-02-15 17:31:04 +0000871<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlpha">PixelSetAlpha</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000872<div class="doc-section">
873
874<p>PixelSetAlpha() sets the normalized alpha color of the pixel wand.</p>
875
876<p>The format of the PixelSetAlpha method is:</p>
877
878<pre class="code">
879 void PixelSetAlpha(PixelWand *wand,const double alpha)
880</pre>
881
882<p>A description of each parameter follows:</p>
883
884<h5>wand</h5>
885<p>the pixel wand.</p>
886
887<h5>alpha</h5>
888<p>the level of transparency: 1.0 is fully opaque and 0.0 is fully transparent.</p>
889
890 </div>
cristy350dea42011-02-15 17:31:04 +0000891<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000892<div class="doc-section">
893
894<p>PixelSetAlphaQuantum() sets the alpha color of the pixel wand.</p>
895
896<p>The format of the PixelSetAlphaQuantum method is:</p>
897
898<pre class="code">
899 void PixelSetAlphaQuantum(PixelWand *wand,
900 const Quantum opacity)
901</pre>
902
903<p>A description of each parameter follows:</p>
904
905<h5>wand</h5>
906<p>the pixel wand.</p>
907
908<h5>opacity</h5>
909<p>the opacity color.</p>
910
911 </div>
cristy350dea42011-02-15 17:31:04 +0000912<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlack">PixelSetBlack</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000913<div class="doc-section">
914
915<p>PixelSetBlack() sets the normalized black color of the pixel wand.</p>
916
917<p>The format of the PixelSetBlack method is:</p>
918
919<pre class="code">
920 void PixelSetBlack(PixelWand *wand,const double black)
921</pre>
922
923<p>A description of each parameter follows:</p>
924
925<h5>wand</h5>
926<p>the pixel wand.</p>
927
928<h5>black</h5>
929<p>the black color.</p>
930
931 </div>
cristy350dea42011-02-15 17:31:04 +0000932<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlackQuantum">PixelSetBlackQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000933<div class="doc-section">
934
935<p>PixelSetBlackQuantum() sets the black color of the pixel wand.</p>
936
937<p>The format of the PixelSetBlackQuantum method is:</p>
938
939<pre class="code">
940 void PixelSetBlackQuantum(PixelWand *wand,const Quantum black)
941</pre>
942
943<p>A description of each parameter follows:</p>
944
945<h5>wand</h5>
946<p>the pixel wand.</p>
947
948<h5>black</h5>
949<p>the black color.</p>
950
951 </div>
cristy350dea42011-02-15 17:31:04 +0000952<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlue">PixelSetBlue</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000953<div class="doc-section">
954
955<p>PixelSetBlue() sets the normalized blue color of the pixel wand.</p>
956
957<p>The format of the PixelSetBlue method is:</p>
958
959<pre class="code">
960 void PixelSetBlue(PixelWand *wand,const double blue)
961</pre>
962
963<p>A description of each parameter follows:</p>
964
965<h5>wand</h5>
966<p>the pixel wand.</p>
967
968<h5>blue</h5>
969<p>the blue color.</p>
970
971 </div>
cristy350dea42011-02-15 17:31:04 +0000972<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlueQuantum">PixelSetBlueQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000973<div class="doc-section">
974
975<p>PixelSetBlueQuantum() sets the blue color of the pixel wand.</p>
976
977<p>The format of the PixelSetBlueQuantum method is:</p>
978
979<pre class="code">
980 void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue)
981</pre>
982
983<p>A description of each parameter follows:</p>
984
985<h5>wand</h5>
986<p>the pixel wand.</p>
987
988<h5>blue</h5>
989<p>the blue color.</p>
990
991 </div>
cristy350dea42011-02-15 17:31:04 +0000992<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColor">PixelSetColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +0000993<div class="doc-section">
994
995<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>
996
997<p>The format of the PixelSetColor method is:</p>
998
999<pre class="code">
1000 MagickBooleanType PixelSetColor(PixelWand *wand,const char *color)
1001</pre>
1002
1003<p>A description of each parameter follows:</p>
1004
1005<h5>wand</h5>
1006<p>the pixel wand.</p>
1007
1008<h5>color</h5>
1009<p>the pixel wand color.</p>
1010
1011 </div>
cristy350dea42011-02-15 17:31:04 +00001012<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorCount">PixelSetColorCount</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001013<div class="doc-section">
1014
1015<p>PixelSetColorCount() sets the color count of the pixel wand.</p>
1016
1017<p>The format of the PixelSetColorCount method is:</p>
1018
1019<pre class="code">
1020 void PixelSetColorCount(PixelWand *wand,const size_t count)
1021</pre>
1022
1023<p>A description of each parameter follows:</p>
1024
1025<h5>wand</h5>
1026<p>the pixel wand.</p>
1027
1028<h5>count</h5>
1029<p>the number of this particular color.</p>
1030
1031 </div>
cristy350dea42011-02-15 17:31:04 +00001032<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorFromWand">PixelSetColorFromWand</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001033<div class="doc-section">
1034
1035<p>PixelSetColorFromWand() sets the color of the pixel wand.</p>
1036
1037<p>The format of the PixelSetColorFromWand method is:</p>
1038
1039<pre class="code">
1040 PixelSetColorFromWand(PixelWand *wand,const PixelWand *color)
1041</pre>
1042
1043<p>A description of each parameter follows:</p>
1044
1045<h5>wand</h5>
1046<p>the pixel wand.</p>
1047
1048<h5>color</h5>
1049<p>set the pixel wand color here.</p>
1050
1051 </div>
cristy350dea42011-02-15 17:31:04 +00001052<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyan">PixelSetCyan</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001053<div class="doc-section">
1054
1055<p>PixelSetCyan() sets the normalized cyan color of the pixel wand.</p>
1056
1057<p>The format of the PixelSetCyan method is:</p>
1058
1059<pre class="code">
1060 void PixelSetCyan(PixelWand *wand,const double cyan)
1061</pre>
1062
1063<p>A description of each parameter follows:</p>
1064
1065<h5>wand</h5>
1066<p>the pixel wand.</p>
1067
1068<h5>cyan</h5>
1069<p>the cyan color.</p>
1070
1071 </div>
cristy350dea42011-02-15 17:31:04 +00001072<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyanQuantum">PixelSetCyanQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001073<div class="doc-section">
1074
1075<p>PixelSetCyanQuantum() sets the cyan color of the pixel wand.</p>
1076
1077<p>The format of the PixelSetCyanQuantum method is:</p>
1078
1079<pre class="code">
1080 void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan)
1081</pre>
1082
1083<p>A description of each parameter follows:</p>
1084
1085<h5>wand</h5>
1086<p>the pixel wand.</p>
1087
1088<h5>cyan</h5>
1089<p>the cyan color.</p>
1090
1091 </div>
cristy350dea42011-02-15 17:31:04 +00001092<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetFuzz">PixelSetFuzz</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001093<div class="doc-section">
1094
1095<p>PixelSetFuzz() sets the fuzz value of the pixel wand.</p>
1096
1097<p>The format of the PixelSetFuzz method is:</p>
1098
1099<pre class="code">
1100 void PixelSetFuzz(PixelWand *wand,const double fuzz)
1101</pre>
1102
1103<p>A description of each parameter follows:</p>
1104
1105<h5>wand</h5>
1106<p>the pixel wand.</p>
1107
1108<h5>fuzz</h5>
1109<p>the fuzz value.</p>
1110
1111 </div>
cristy350dea42011-02-15 17:31:04 +00001112<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreen">PixelSetGreen</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001113<div class="doc-section">
1114
1115<p>PixelSetGreen() sets the normalized green color of the pixel wand.</p>
1116
1117<p>The format of the PixelSetGreen method is:</p>
1118
1119<pre class="code">
1120 void PixelSetGreen(PixelWand *wand,const double green)
1121</pre>
1122
1123<p>A description of each parameter follows:</p>
1124
1125<h5>wand</h5>
1126<p>the pixel wand.</p>
1127
1128<h5>green</h5>
1129<p>the green color.</p>
1130
1131 </div>
cristy350dea42011-02-15 17:31:04 +00001132<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreenQuantum">PixelSetGreenQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001133<div class="doc-section">
1134
1135<p>PixelSetGreenQuantum() sets the green color of the pixel wand.</p>
1136
1137<p>The format of the PixelSetGreenQuantum method is:</p>
1138
1139<pre class="code">
1140 void PixelSetGreenQuantum(PixelWand *wand,const Quantum green)
1141</pre>
1142
1143<p>A description of each parameter follows:</p>
1144
1145<h5>wand</h5>
1146<p>the pixel wand.</p>
1147
1148<h5>green</h5>
1149<p>the green color.</p>
1150
1151 </div>
cristy350dea42011-02-15 17:31:04 +00001152<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetHSL">PixelSetHSL</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001153<div class="doc-section">
1154
1155<p>PixelSetHSL() sets the normalized HSL color of the pixel wand.</p>
1156
1157<p>The format of the PixelSetHSL method is:</p>
1158
1159<pre class="code">
1160 void PixelSetHSL(PixelWand *wand,const double hue,
1161 const double saturation,const double lightness)
1162</pre>
1163
1164<p>A description of each parameter follows:</p>
1165
1166<h5>wand</h5>
1167<p>the pixel wand.</p>
1168
1169<h5>hue,saturation,lightness</h5>
1170<p>Return the pixel hue, saturation, and brightness.</p>
1171
1172 </div>
cristy350dea42011-02-15 17:31:04 +00001173<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetIndex">PixelSetIndex</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001174<div class="doc-section">
1175
1176<p>PixelSetIndex() sets the colormap index of the pixel wand.</p>
1177
1178<p>The format of the PixelSetIndex method is:</p>
1179
1180<pre class="code">
1181 void PixelSetIndex(PixelWand *wand,const IndexPacket index)
1182</pre>
1183
1184<p>A description of each parameter follows:</p>
1185
1186<h5>wand</h5>
1187<p>the pixel wand.</p>
1188
1189<h5>index</h5>
1190<p>the colormap index.</p>
1191
1192 </div>
cristy350dea42011-02-15 17:31:04 +00001193<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagenta">PixelSetMagenta</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001194<div class="doc-section">
1195
1196<p>PixelSetMagenta() sets the normalized magenta color of the pixel wand.</p>
1197
1198<p>The format of the PixelSetMagenta method is:</p>
1199
1200<pre class="code">
1201 void PixelSetMagenta(PixelWand *wand,const double magenta)
1202</pre>
1203
1204<p>A description of each parameter follows:</p>
1205
1206<h5>wand</h5>
1207<p>the pixel wand.</p>
1208
1209<h5>magenta</h5>
1210<p>the magenta color.</p>
1211
1212 </div>
cristy350dea42011-02-15 17:31:04 +00001213<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001214<div class="doc-section">
1215
1216<p>PixelSetMagentaQuantum() sets the magenta color of the pixel wand.</p>
1217
1218<p>The format of the PixelSetMagentaQuantum method is:</p>
1219
1220<pre class="code">
1221 void PixelSetMagentaQuantum(PixelWand *wand,
1222 const Quantum magenta)
1223</pre>
1224
1225<p>A description of each parameter follows:</p>
1226
1227<h5>wand</h5>
1228<p>the pixel wand.</p>
1229
1230<h5>magenta</h5>
1231<p>the green magenta.</p>
1232
1233 </div>
cristy350dea42011-02-15 17:31:04 +00001234<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagickColor">PixelSetMagickColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001235<div class="doc-section">
1236
1237<p>PixelSetMagickColor() sets the color of the pixel wand.</p>
1238
1239<p>The format of the PixelSetMagickColor method is:</p>
1240
1241<pre class="code">
1242 PixelSetMagickColor(PixelWand *wand,const MagickPixelPacket *color)
1243</pre>
1244
1245<p>A description of each parameter follows:</p>
1246
1247<h5>wand</h5>
1248<p>the pixel wand.</p>
1249
1250<h5>color</h5>
1251<p>the pixel wand color.</p>
1252
1253 </div>
cristy350dea42011-02-15 17:31:04 +00001254<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacity">PixelSetOpacity</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001255<div class="doc-section">
1256
1257<p>PixelSetOpacity() sets the normalized opacity color of the pixel wand.</p>
1258
1259<p>The format of the PixelSetOpacity method is:</p>
1260
1261<pre class="code">
1262 void PixelSetOpacity(PixelWand *wand,const double opacity)
1263</pre>
1264
1265<p>A description of each parameter follows:</p>
1266
1267<h5>wand</h5>
1268<p>the pixel wand.</p>
1269
1270<h5>opacity</h5>
1271<p>the opacity color.</p>
1272
1273 </div>
cristy350dea42011-02-15 17:31:04 +00001274<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacityQuantum">PixelSetOpacityQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001275<div class="doc-section">
1276
1277<p>PixelSetOpacityQuantum() sets the opacity color of the pixel wand.</p>
1278
1279<p>The format of the PixelSetOpacityQuantum method is:</p>
1280
1281<pre class="code">
1282 void PixelSetOpacityQuantum(PixelWand *wand,
1283 const Quantum opacity)
1284</pre>
1285
1286<p>A description of each parameter follows:</p>
1287
1288<h5>wand</h5>
1289<p>the pixel wand.</p>
1290
1291<h5>opacity</h5>
1292<p>the opacity color.</p>
1293
1294 </div>
cristy350dea42011-02-15 17:31:04 +00001295<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetQuantumColor">PixelSetQuantumColor</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001296<div class="doc-section">
1297
1298<p>PixelSetQuantumColor() sets the color of the pixel wand.</p>
1299
1300<p>The format of the PixelSetQuantumColor method is:</p>
1301
1302<pre class="code">
1303 PixelSetQuantumColor(PixelWand *wand,const PixelPacket *color)
1304</pre>
1305
1306<p>A description of each parameter follows:</p>
1307
1308<h5>wand</h5>
1309<p>the pixel wand.</p>
1310
1311<h5>color</h5>
1312<p>the pixel wand color.</p>
1313
1314 </div>
cristy350dea42011-02-15 17:31:04 +00001315<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRed">PixelSetRed</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001316<div class="doc-section">
1317
1318<p>PixelSetRed() sets the normalized red color of the pixel wand.</p>
1319
1320<p>The format of the PixelSetRed method is:</p>
1321
1322<pre class="code">
1323 void PixelSetRed(PixelWand *wand,const double red)
1324</pre>
1325
1326<p>A description of each parameter follows:</p>
1327
1328<h5>wand</h5>
1329<p>the pixel wand.</p>
1330
1331<h5>red</h5>
1332<p>the red color.</p>
1333
1334 </div>
cristy350dea42011-02-15 17:31:04 +00001335<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRedQuantum">PixelSetRedQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001336<div class="doc-section">
1337
1338<p>PixelSetRedQuantum() sets the red color of the pixel wand.</p>
1339
1340<p>The format of the PixelSetRedQuantum method is:</p>
1341
1342<pre class="code">
1343 void PixelSetRedQuantum(PixelWand *wand,const Quantum red)
1344</pre>
1345
1346<p>A description of each parameter follows:</p>
1347
1348<h5>wand</h5>
1349<p>the pixel wand.</p>
1350
1351<h5>red</h5>
1352<p>the red color.</p>
1353
1354 </div>
cristy350dea42011-02-15 17:31:04 +00001355<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellow">PixelSetYellow</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001356<div class="doc-section">
1357
1358<p>PixelSetYellow() sets the normalized yellow color of the pixel wand.</p>
1359
1360<p>The format of the PixelSetYellow method is:</p>
1361
1362<pre class="code">
1363 void PixelSetYellow(PixelWand *wand,const double yellow)
1364</pre>
1365
1366<p>A description of each parameter follows:</p>
1367
1368<h5>wand</h5>
1369<p>the pixel wand.</p>
1370
1371<h5>yellow</h5>
1372<p>the yellow color.</p>
1373
1374 </div>
cristy350dea42011-02-15 17:31:04 +00001375<h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellowQuantum">PixelSetYellowQuantum</a></h2>
cristy6f77f692011-02-15 15:31:39 +00001376<div class="doc-section">
1377
1378<p>PixelSetYellowQuantum() sets the yellow color of the pixel wand.</p>
1379
1380<p>The format of the PixelSetYellowQuantum method is:</p>
1381
1382<pre class="code">
1383 void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow)
1384</pre>
1385
1386<p>A description of each parameter follows:</p>
1387
1388<h5>wand</h5>
1389<p>the pixel wand.</p>
1390
1391<h5>yellow</h5>
1392<p>the yellow color.</p>
1393
1394 </div>
cristy3eaa0ef2010-03-06 20:35:26 +00001395
1396</div>
1397
1398<div id="linkbar">
cristyce69bb02010-07-27 19:49:46 +00001399 <span id="linkbar-west">&nbsp;</span>
cristy3eaa0ef2010-03-06 20:35:26 +00001400 <span id="linkbar-center">
1401 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;
cristya8902942010-07-30 00:49:52 +00001402 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy3eaa0ef2010-03-06 20:35:26 +00001403 </span>
1404 <span id="linkbar-east">&nbsp;</span>
1405 </div>
1406 <div class="footer">
cristy4103d562010-12-10 01:38:54 +00001407 <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
cristy3eaa0ef2010-03-06 20:35:26 +00001408 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
1409 </div>
1410 <div style="clear: both; margin: 0; width: 100%; "></div>
cristya8902942010-07-30 00:49:52 +00001411 <script type="text/javascript">
1412 var _gaq = _gaq || [];
1413 _gaq.push(['_setAccount', 'UA-17690367-1']);
1414 _gaq.push(['_trackPageview']);
1415
1416 (function() {
1417 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
1418 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
1419 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
1420 })();
1421 </script>
cristy3eaa0ef2010-03-06 20:35:26 +00001422</body>
1423</html>