1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html version="-//W3C//DTD XHTML 1.1//EN"
\r
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
\r
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
\r
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
\r
9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
\r
10 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
\r
11 <title>ImageMagick: MagickWand, C API for ImageMagick: Pixel Wand Methods</title>
12 <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"/>
15 <meta name="Application-name" content="ImageMagick"/>
16 <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."/>
17 <meta name="Application-url" content="http://www.imagemagick.org"/>
18 <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"/>
20 <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"/>
26 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
27 <meta name="Distribution" content="Global"/>
28 <link rel="icon" href="../../images/wand.png"/>
29 <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"/>
\r
31 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
\r
32 <style type="text/css" media="all">
\r
33 @import url("../../www/magick.css");
\r
35 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
\r
36 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
\r
37 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
\r
38 <script type="text/javascript">
\r
39 $(document).ready(function() {
\r
40 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
\r
41 'transitionIn' : 'elastic',
\r
42 'transitionOut' : 'elastic',
\r
43 'overlayShow' : false,
\r
50 <body id="www-imagemagick-org">
\r
51 <div class="titlebar">
\r
52 <a href="../../index.html">
\r
53 <img src="../../images/script.png" alt="[ImageMagick]"
\r
54 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
55 <a href="http://www.networkredux.com">
\r
56 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
57 style="margin-top: 42px; border: 0px; float: left;" /></a>
\r
58 <a href="http://www.imagemagick.org/discourse-server/">
\r
59 <img src="../../images/logo.jpg"
\r
60 alt="ImageMagick Logo"
\r
61 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
\r
62 <a href="../../index.html">
\r
63 <img src="../../images/sprite.jpg"
\r
64 alt="ImageMagick Sprite"
\r
65 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
68 <div class="westbar">
\r
71 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
73 <div class="sep"></div>
\r
75 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
78 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
81 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
84 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
86 <div class="sep"></div>
\r
88 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
91 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
94 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
97 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
100 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
103 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
106 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
109 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
112 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
114 <div class="sep"></div>
\r
116 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
119 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
122 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
125 <a title="Resources" href="../../www/resources.html">Resources</a>
128 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
131 <a title="Download" href="../../www/download.html">Download</a>
133 <div class="sep"></div>
\r
135 <a title="Search" href="../../www/search.html">Search</a>
137 <div class="sep"></div>
\r
139 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
142 <a title="Site Map: Links" href="../../www/links.html">Links</a>
144 <div class="sep"></div>
\r
146 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
148 <div class="sponsbox">
149 <div class="sponsor">
150 <a title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
152 <div class="sponsor">
153 <a title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
155 <div class="sponsor">
156 <a title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201107010240 r.leo -->
158 <div class="sponsor">
159 <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
161 <div class="sponsor">
162 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
164 <div class="sponsor">
165 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
167 <div class="sponsor">
168 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
170 <div class="sponsor">
171 <a title="Sponsor: Free Catalogs" href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 20120801000600 -->
177 <div class="eastbar">
\r
178 <script type="text/javascript">
\r
180 google_ad_client = "pub-3129977114552745";
\r
181 google_ad_slot = "0574824969";
\r
182 google_ad_width = 160;
\r
183 google_ad_height = 600;
\r
186 <script type="text/javascript"
\r
187 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
193 <h1>Module pixel-wand Methods</h1>
194 <p class="navigation-index">[<a href="#ClearPixelWand">ClearPixelWand</a> • <a href="#ClonePixelWand">ClonePixelWand</a> • <a href="#ClonePixelWands">ClonePixelWands</a> • <a href="#DestroyPixelWand">DestroyPixelWand</a> • <a href="#DestroyPixelWands">DestroyPixelWands</a> • <a href="#IsPixelWandSimilar">IsPixelWandSimilar</a> • <a href="#IsPixelWand">IsPixelWand</a> • <a href="#NewPixelWand">NewPixelWand</a> • <a href="#NewPixelWands">NewPixelWands</a> • <a href="#PixelClearException">PixelClearException</a> • <a href="#PixelGetAlpha">PixelGetAlpha</a> • <a href="#PixelGetAlphaQuantum">PixelGetAlphaQuantum</a> • <a href="#PixelGetBlack">PixelGetBlack</a> • <a href="#PixelGetBlackQuantum">PixelGetBlackQuantum</a> • <a href="#PixelGetBlue">PixelGetBlue</a> • <a href="#PixelGetBlueQuantum">PixelGetBlueQuantum</a> • <a href="#PixelGetColorAsString">PixelGetColorAsString</a> • <a href="#PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a> • <a href="#PixelGetColorCount">PixelGetColorCount</a> • <a href="#PixelGetCyan">PixelGetCyan</a> • <a href="#PixelGetCyanQuantum">PixelGetCyanQuantum</a> • <a href="#PixelGetException">PixelGetException</a> • <a href="#PixelGetExceptionType">PixelGetExceptionType</a> • <a href="#PixelGetFuzz">PixelGetFuzz</a> • <a href="#PixelGetGreen">PixelGetGreen</a> • <a href="#PixelGetGreenQuantum">PixelGetGreenQuantum</a> • <a href="#PixelGetHSL">PixelGetHSL</a> • <a href="#PixelGetIndex">PixelGetIndex</a> • <a href="#PixelGetMagenta">PixelGetMagenta</a> • <a href="#PixelGetMagentaQuantum">PixelGetMagentaQuantum</a> • <a href="#PixelGetMagickColor">PixelGetMagickColor</a> • <a href="#PixelGetOpacity">PixelGetOpacity</a> • <a href="#PixelGetOpacityQuantum">PixelGetOpacityQuantum</a> • <a href="#PixelGetQuantumColor">PixelGetQuantumColor</a> • <a href="#PixelGetRed">PixelGetRed</a> • <a href="#PixelGetRedQuantum">PixelGetRedQuantum</a> • <a href="#PixelGetYellow">PixelGetYellow</a> • <a href="#PixelGetYellowQuantum">PixelGetYellowQuantum</a> • <a href="#PixelSetAlpha">PixelSetAlpha</a> • <a href="#PixelSetAlphaQuantum">PixelSetAlphaQuantum</a> • <a href="#PixelSetBlack">PixelSetBlack</a> • <a href="#PixelSetBlackQuantum">PixelSetBlackQuantum</a> • <a href="#PixelSetBlue">PixelSetBlue</a> • <a href="#PixelSetBlueQuantum">PixelSetBlueQuantum</a> • <a href="#PixelSetColor">PixelSetColor</a> • <a href="#PixelSetColorCount">PixelSetColorCount</a> • <a href="#PixelSetColorFromWand">PixelSetColorFromWand</a> • <a href="#PixelSetCyan">PixelSetCyan</a> • <a href="#PixelSetCyanQuantum">PixelSetCyanQuantum</a> • <a href="#PixelSetFuzz">PixelSetFuzz</a> • <a href="#PixelSetGreen">PixelSetGreen</a> • <a href="#PixelSetGreenQuantum">PixelSetGreenQuantum</a> • <a href="#PixelSetHSL">PixelSetHSL</a> • <a href="#PixelSetIndex">PixelSetIndex</a> • <a href="#PixelSetMagenta">PixelSetMagenta</a> • <a href="#PixelSetMagentaQuantum">PixelSetMagentaQuantum</a> • <a href="#PixelSetMagickColor">PixelSetMagickColor</a> • <a href="#PixelSetOpacity">PixelSetOpacity</a> • <a href="#PixelSetOpacityQuantum">PixelSetOpacityQuantum</a> • <a href="#PixelSetQuantumColor">PixelSetQuantumColor</a> • <a href="#PixelSetRed">PixelSetRed</a> • <a href="#PixelSetRedQuantum">PixelSetRedQuantum</a> • <a href="#PixelSetYellow">PixelSetYellow</a> • <a href="#PixelSetYellowQuantum">PixelSetYellowQuantum</a>]</p>
196 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClearPixelWand">ClearPixelWand</a></h2>
197 <div class="doc-section">
199 <p>ClearPixelWand() clears resources associated with the wand.</p>
201 <p>The format of the ClearPixelWand method is:</p>
204 void ClearPixelWand(PixelWand *wand)
207 <p>A description of each parameter follows:</p>
210 <p>the pixel wand.</p>
213 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWand">ClonePixelWand</a></h2>
214 <div class="doc-section">
216 <p>ClonePixelWand() makes an exact copy of the specified wand.</p>
218 <p>The format of the ClonePixelWand method is:</p>
221 PixelWand *ClonePixelWand(const PixelWand *wand)
224 <p>A description of each parameter follows:</p>
227 <p>the magick wand.</p>
230 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWands">ClonePixelWands</a></h2>
231 <div class="doc-section">
233 <p>ClonePixelWands() makes an exact copy of the specified wands.</p>
235 <p>The format of the ClonePixelWands method is:</p>
238 PixelWand **ClonePixelWands(const PixelWand **wands,
239 const size_t number_wands)
242 <p>A description of each parameter follows:</p>
245 <p>the magick wands.</p>
247 <h5>number_wands</h5>
248 <p>the number of wands.</p>
251 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWand">DestroyPixelWand</a></h2>
252 <div class="doc-section">
254 <p>DestroyPixelWand() deallocates resources associated with a PixelWand.</p>
256 <p>The format of the DestroyPixelWand method is:</p>
259 PixelWand *DestroyPixelWand(PixelWand *wand)
262 <p>A description of each parameter follows:</p>
265 <p>the pixel wand.</p>
268 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWands">DestroyPixelWands</a></h2>
269 <div class="doc-section">
271 <p>DestroyPixelWands() deallocates resources associated with an array of pixel wands.</p>
273 <p>The format of the DestroyPixelWands method is:</p>
276 PixelWand **DestroyPixelWands(PixelWand **wand,
277 const size_t number_wands)
280 <p>A description of each parameter follows:</p>
283 <p>the pixel wand.</p>
285 <h5>number_wands</h5>
286 <p>the number of wands.</p>
289 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWandSimilar">IsPixelWandSimilar</a></h2>
290 <div class="doc-section">
292 <p>IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.</p>
294 <p>The format of the IsPixelWandSimilar method is:</p>
297 MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q,
301 <p>A description of each parameter follows:</p>
304 <p>the pixel wand.</p>
307 <p>the pixel wand.</p>
310 <p>any two colors that are less than or equal to this distance squared are consider similar.</p>
313 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWand">IsPixelWand</a></h2>
314 <div class="doc-section">
316 <p>IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.</p>
318 <p>The format of the IsPixelWand method is:</p>
321 MagickBooleanType IsPixelWand(const PixelWand *wand)
324 <p>A description of each parameter follows:</p>
327 <p>the magick wand.</p>
330 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWand">NewPixelWand</a></h2>
331 <div class="doc-section">
333 <p>NewPixelWand() returns a new pixel wand.</p>
335 <p>The format of the NewPixelWand method is:</p>
338 PixelWand *NewPixelWand(void)
342 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWands">NewPixelWands</a></h2>
343 <div class="doc-section">
345 <p>NewPixelWands() returns an array of pixel wands.</p>
347 <p>The format of the NewPixelWands method is:</p>
350 PixelWand **NewPixelWands(const size_t number_wands)
353 <p>A description of each parameter follows:</p>
355 <h5>number_wands</h5>
356 <p>the number of wands.</p>
359 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelClearException">PixelClearException</a></h2>
360 <div class="doc-section">
362 <p>PixelClearException() clear any exceptions associated with the iterator.</p>
364 <p>The format of the PixelClearException method is:</p>
367 MagickBooleanType PixelClearException(PixelWand *wand)
370 <p>A description of each parameter follows:</p>
373 <p>the pixel wand.</p>
376 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlpha">PixelGetAlpha</a></h2>
377 <div class="doc-section">
379 <p>PixelGetAlpha() returns the normalized alpha color of the pixel wand.</p>
381 <p>The format of the PixelGetAlpha method is:</p>
384 double PixelGetAlpha(const PixelWand *wand)
387 <p>A description of each parameter follows:</p>
390 <p>the pixel wand.</p>
393 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></h2>
394 <div class="doc-section">
396 <p>PixelGetAlphaQuantum() returns the alpha value of the pixel wand.</p>
398 <p>The format of the PixelGetAlphaQuantum method is:</p>
401 Quantum PixelGetAlphaQuantum(const PixelWand *wand)
404 <p>A description of each parameter follows:</p>
407 <p>the pixel wand.</p>
410 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlack">PixelGetBlack</a></h2>
411 <div class="doc-section">
413 <p>PixelGetBlack() returns the normalized black color of the pixel wand.</p>
415 <p>The format of the PixelGetBlack method is:</p>
418 double PixelGetBlack(const PixelWand *wand)
421 <p>A description of each parameter follows:</p>
424 <p>the pixel wand.</p>
427 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlackQuantum">PixelGetBlackQuantum</a></h2>
428 <div class="doc-section">
430 <p>PixelGetBlackQuantum() returns the black color of the pixel wand.</p>
432 <p>The format of the PixelGetBlackQuantum method is:</p>
435 Quantum PixelGetBlackQuantum(const PixelWand *wand)
438 <p>A description of each parameter follows:</p>
441 <p>the pixel wand.</p>
444 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlue">PixelGetBlue</a></h2>
445 <div class="doc-section">
447 <p>PixelGetBlue() returns the normalized blue color of the pixel wand.</p>
449 <p>The format of the PixelGetBlue method is:</p>
452 double PixelGetBlue(const PixelWand *wand)
455 <p>A description of each parameter follows:</p>
458 <p>the pixel wand.</p>
461 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlueQuantum">PixelGetBlueQuantum</a></h2>
462 <div class="doc-section">
464 <p>PixelGetBlueQuantum() returns the blue color of the pixel wand.</p>
466 <p>The format of the PixelGetBlueQuantum method is:</p>
469 Quantum PixelGetBlueQuantum(const PixelWand *wand)
472 <p>A description of each parameter follows:</p>
475 <p>the pixel wand.</p>
478 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsString">PixelGetColorAsString</a></h2>
479 <div class="doc-section">
481 <p>PixelGetColorAsString() returnsd the color of the pixel wand as a string.</p>
483 <p>The format of the PixelGetColorAsString method is:</p>
486 char *PixelGetColorAsString(PixelWand *wand)
489 <p>A description of each parameter follows:</p>
492 <p>the pixel wand.</p>
495 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a></h2>
496 <div class="doc-section">
498 <p>PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.</p>
500 <p>The format of the PixelGetColorAsNormalizedString method is:</p>
503 char *PixelGetColorAsNormalizedString(PixelWand *wand)
506 <p>A description of each parameter follows:</p>
509 <p>the pixel wand.</p>
512 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorCount">PixelGetColorCount</a></h2>
513 <div class="doc-section">
515 <p>PixelGetColorCount() returns the color count associated with this color.</p>
517 <p>The format of the PixelGetColorCount method is:</p>
520 size_t PixelGetColorCount(const PixelWand *wand)
523 <p>A description of each parameter follows:</p>
526 <p>the pixel wand.</p>
529 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyan">PixelGetCyan</a></h2>
530 <div class="doc-section">
532 <p>PixelGetCyan() returns the normalized cyan color of the pixel wand.</p>
534 <p>The format of the PixelGetCyan method is:</p>
537 double PixelGetCyan(const PixelWand *wand)
540 <p>A description of each parameter follows:</p>
543 <p>the pixel wand.</p>
546 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyanQuantum">PixelGetCyanQuantum</a></h2>
547 <div class="doc-section">
549 <p>PixelGetCyanQuantum() returns the cyan color of the pixel wand.</p>
551 <p>The format of the PixelGetCyanQuantum method is:</p>
554 Quantum PixelGetCyanQuantum(const PixelWand *wand)
557 <p>A description of each parameter follows:</p>
560 <p>the pixel wand.</p>
563 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetException">PixelGetException</a></h2>
564 <div class="doc-section">
566 <p>PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
568 <p>The format of the PixelGetException method is:</p>
571 char *PixelGetException(const PixelWand *wand,ExceptionType *severity)
574 <p>A description of each parameter follows:</p>
577 <p>the pixel wand.</p>
580 <p>the severity of the error is returned here.</p>
583 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetExceptionType">PixelGetExceptionType</a></h2>
584 <div class="doc-section">
586 <p>PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
588 <p>The format of the PixelGetExceptionType method is:</p>
591 ExceptionType PixelGetExceptionType(const PixelWand *wand)
594 <p>A description of each parameter follows:</p>
597 <p>the magick wand.</p>
600 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetFuzz">PixelGetFuzz</a></h2>
601 <div class="doc-section">
603 <p>PixelGetFuzz() returns the normalized fuzz value of the pixel wand.</p>
605 <p>The format of the PixelGetFuzz method is:</p>
608 double PixelGetFuzz(const PixelWand *wand)
611 <p>A description of each parameter follows:</p>
614 <p>the pixel wand.</p>
617 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreen">PixelGetGreen</a></h2>
618 <div class="doc-section">
620 <p>PixelGetGreen() returns the normalized green color of the pixel wand.</p>
622 <p>The format of the PixelGetGreen method is:</p>
625 double PixelGetGreen(const PixelWand *wand)
628 <p>A description of each parameter follows:</p>
631 <p>the pixel wand.</p>
634 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreenQuantum">PixelGetGreenQuantum</a></h2>
635 <div class="doc-section">
637 <p>PixelGetGreenQuantum() returns the green color of the pixel wand.</p>
639 <p>The format of the PixelGetGreenQuantum method is:</p>
642 Quantum PixelGetGreenQuantum(const PixelWand *wand)
645 <p>A description of each parameter follows:</p>
648 <p>the pixel wand.</p>
651 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetHSL">PixelGetHSL</a></h2>
652 <div class="doc-section">
654 <p>PixelGetHSL() returns the normalized HSL color of the pixel wand.</p>
656 <p>The format of the PixelGetHSL method is:</p>
659 void PixelGetHSL(const PixelWand *wand,double *hue,double *saturation,
663 <p>A description of each parameter follows:</p>
666 <p>the pixel wand.</p>
668 <h5>hue,saturation,lightness</h5>
669 <p>Return the pixel hue, saturation, and brightness.</p>
672 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetIndex">PixelGetIndex</a></h2>
673 <div class="doc-section">
675 <p>PixelGetIndex() returns the colormap index from the pixel wand.</p>
677 <p>The format of the PixelGetIndex method is:</p>
680 IndexPacket PixelGetIndex(const PixelWand *wand)
683 <p>A description of each parameter follows:</p>
686 <p>the pixel wand.</p>
689 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagenta">PixelGetMagenta</a></h2>
690 <div class="doc-section">
692 <p>PixelGetMagenta() returns the normalized magenta color of the pixel wand.</p>
694 <p>The format of the PixelGetMagenta method is:</p>
697 double PixelGetMagenta(const PixelWand *wand)
700 <p>A description of each parameter follows:</p>
703 <p>the pixel wand.</p>
706 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></h2>
707 <div class="doc-section">
709 <p>PixelGetMagentaQuantum() returns the magenta color of the pixel wand.</p>
711 <p>The format of the PixelGetMagentaQuantum method is:</p>
714 Quantum PixelGetMagentaQuantum(const PixelWand *wand)
717 <p>A description of each parameter follows:</p>
720 <p>the pixel wand.</p>
723 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagickColor">PixelGetMagickColor</a></h2>
724 <div class="doc-section">
726 <p>PixelGetMagickColor() gets the magick color of the pixel wand.</p>
728 <p>The format of the PixelGetMagickColor method is:</p>
731 void PixelGetMagickColor(PixelWand *wand,MagickPixelPacket *color)
734 <p>A description of each parameter follows:</p>
737 <p>the pixel wand.</p>
740 <p>The pixel wand color is returned here.</p>
743 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacity">PixelGetOpacity</a></h2>
744 <div class="doc-section">
746 <p>PixelGetOpacity() returns the normalized opacity color of the pixel wand.</p>
748 <p>The format of the PixelGetOpacity method is:</p>
751 double PixelGetOpacity(const PixelWand *wand)
754 <p>A description of each parameter follows:</p>
757 <p>the pixel wand.</p>
760 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacityQuantum">PixelGetOpacityQuantum</a></h2>
761 <div class="doc-section">
763 <p>PixelGetOpacityQuantum() returns the opacity color of the pixel wand.</p>
765 <p>The format of the PixelGetOpacityQuantum method is:</p>
768 Quantum PixelGetOpacityQuantum(const PixelWand *wand)
771 <p>A description of each parameter follows:</p>
774 <p>the pixel wand.</p>
777 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumColor">PixelGetQuantumColor</a></h2>
778 <div class="doc-section">
780 <p>PixelGetQuantumColor() gets the color of the pixel wand as a PixelPacket.</p>
782 <p>The format of the PixelGetQuantumColor method is:</p>
785 void PixelGetQuantumColor(PixelWand *wand,PixelPacket *color)
788 <p>A description of each parameter follows:</p>
791 <p>the pixel wand.</p>
794 <p>The pixel wand color is returned here.</p>
797 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRed">PixelGetRed</a></h2>
798 <div class="doc-section">
800 <p>PixelGetRed() returns the normalized red color of the pixel wand.</p>
802 <p>The format of the PixelGetRed method is:</p>
805 double PixelGetRed(const PixelWand *wand)
808 <p>A description of each parameter follows:</p>
811 <p>the pixel wand.</p>
814 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRedQuantum">PixelGetRedQuantum</a></h2>
815 <div class="doc-section">
817 <p>PixelGetRedQuantum() returns the red color of the pixel wand.</p>
819 <p>The format of the PixelGetRedQuantum method is:</p>
822 Quantum PixelGetRedQuantum(const PixelWand *wand)
825 <p>A description of each parameter follows:</p>
828 <p>the pixel wand.</p>
831 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellow">PixelGetYellow</a></h2>
832 <div class="doc-section">
834 <p>PixelGetYellow() returns the normalized yellow color of the pixel wand.</p>
836 <p>The format of the PixelGetYellow method is:</p>
839 double PixelGetYellow(const PixelWand *wand)
842 <p>A description of each parameter follows:</p>
845 <p>the pixel wand.</p>
848 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellowQuantum">PixelGetYellowQuantum</a></h2>
849 <div class="doc-section">
851 <p>PixelGetYellowQuantum() returns the yellow color of the pixel wand.</p>
853 <p>The format of the PixelGetYellowQuantum method is:</p>
856 Quantum PixelGetYellowQuantum(const PixelWand *wand)
859 <p>A description of each parameter follows:</p>
862 <p>the pixel wand.</p>
865 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlpha">PixelSetAlpha</a></h2>
866 <div class="doc-section">
868 <p>PixelSetAlpha() sets the normalized alpha color of the pixel wand.</p>
870 <p>The format of the PixelSetAlpha method is:</p>
873 void PixelSetAlpha(PixelWand *wand,const double alpha)
876 <p>A description of each parameter follows:</p>
879 <p>the pixel wand.</p>
882 <p>the level of transparency: 1.0 is fully opaque and 0.0 is fully transparent.</p>
885 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></h2>
886 <div class="doc-section">
888 <p>PixelSetAlphaQuantum() sets the alpha color of the pixel wand.</p>
890 <p>The format of the PixelSetAlphaQuantum method is:</p>
893 void PixelSetAlphaQuantum(PixelWand *wand,
894 const Quantum opacity)
897 <p>A description of each parameter follows:</p>
900 <p>the pixel wand.</p>
903 <p>the opacity color.</p>
906 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlack">PixelSetBlack</a></h2>
907 <div class="doc-section">
909 <p>PixelSetBlack() sets the normalized black color of the pixel wand.</p>
911 <p>The format of the PixelSetBlack method is:</p>
914 void PixelSetBlack(PixelWand *wand,const double black)
917 <p>A description of each parameter follows:</p>
920 <p>the pixel wand.</p>
923 <p>the black color.</p>
926 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlackQuantum">PixelSetBlackQuantum</a></h2>
927 <div class="doc-section">
929 <p>PixelSetBlackQuantum() sets the black color of the pixel wand.</p>
931 <p>The format of the PixelSetBlackQuantum method is:</p>
934 void PixelSetBlackQuantum(PixelWand *wand,const Quantum black)
937 <p>A description of each parameter follows:</p>
940 <p>the pixel wand.</p>
943 <p>the black color.</p>
946 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlue">PixelSetBlue</a></h2>
947 <div class="doc-section">
949 <p>PixelSetBlue() sets the normalized blue color of the pixel wand.</p>
951 <p>The format of the PixelSetBlue method is:</p>
954 void PixelSetBlue(PixelWand *wand,const double blue)
957 <p>A description of each parameter follows:</p>
960 <p>the pixel wand.</p>
963 <p>the blue color.</p>
966 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlueQuantum">PixelSetBlueQuantum</a></h2>
967 <div class="doc-section">
969 <p>PixelSetBlueQuantum() sets the blue color of the pixel wand.</p>
971 <p>The format of the PixelSetBlueQuantum method is:</p>
974 void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue)
977 <p>A description of each parameter follows:</p>
980 <p>the pixel wand.</p>
983 <p>the blue color.</p>
986 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColor">PixelSetColor</a></h2>
987 <div class="doc-section">
989 <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>
991 <p>The format of the PixelSetColor method is:</p>
994 MagickBooleanType PixelSetColor(PixelWand *wand,const char *color)
997 <p>A description of each parameter follows:</p>
1000 <p>the pixel wand.</p>
1003 <p>the pixel wand color.</p>
1006 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorCount">PixelSetColorCount</a></h2>
1007 <div class="doc-section">
1009 <p>PixelSetColorCount() sets the color count of the pixel wand.</p>
1011 <p>The format of the PixelSetColorCount method is:</p>
1014 void PixelSetColorCount(PixelWand *wand,const size_t count)
1017 <p>A description of each parameter follows:</p>
1020 <p>the pixel wand.</p>
1023 <p>the number of this particular color.</p>
1026 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorFromWand">PixelSetColorFromWand</a></h2>
1027 <div class="doc-section">
1029 <p>PixelSetColorFromWand() sets the color of the pixel wand.</p>
1031 <p>The format of the PixelSetColorFromWand method is:</p>
1034 PixelSetColorFromWand(PixelWand *wand,const PixelWand *color)
1037 <p>A description of each parameter follows:</p>
1040 <p>the pixel wand.</p>
1043 <p>set the pixel wand color here.</p>
1046 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyan">PixelSetCyan</a></h2>
1047 <div class="doc-section">
1049 <p>PixelSetCyan() sets the normalized cyan color of the pixel wand.</p>
1051 <p>The format of the PixelSetCyan method is:</p>
1054 void PixelSetCyan(PixelWand *wand,const double cyan)
1057 <p>A description of each parameter follows:</p>
1060 <p>the pixel wand.</p>
1063 <p>the cyan color.</p>
1066 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyanQuantum">PixelSetCyanQuantum</a></h2>
1067 <div class="doc-section">
1069 <p>PixelSetCyanQuantum() sets the cyan color of the pixel wand.</p>
1071 <p>The format of the PixelSetCyanQuantum method is:</p>
1074 void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan)
1077 <p>A description of each parameter follows:</p>
1080 <p>the pixel wand.</p>
1083 <p>the cyan color.</p>
1086 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetFuzz">PixelSetFuzz</a></h2>
1087 <div class="doc-section">
1089 <p>PixelSetFuzz() sets the fuzz value of the pixel wand.</p>
1091 <p>The format of the PixelSetFuzz method is:</p>
1094 void PixelSetFuzz(PixelWand *wand,const double fuzz)
1097 <p>A description of each parameter follows:</p>
1100 <p>the pixel wand.</p>
1103 <p>the fuzz value.</p>
1106 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreen">PixelSetGreen</a></h2>
1107 <div class="doc-section">
1109 <p>PixelSetGreen() sets the normalized green color of the pixel wand.</p>
1111 <p>The format of the PixelSetGreen method is:</p>
1114 void PixelSetGreen(PixelWand *wand,const double green)
1117 <p>A description of each parameter follows:</p>
1120 <p>the pixel wand.</p>
1123 <p>the green color.</p>
1126 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreenQuantum">PixelSetGreenQuantum</a></h2>
1127 <div class="doc-section">
1129 <p>PixelSetGreenQuantum() sets the green color of the pixel wand.</p>
1131 <p>The format of the PixelSetGreenQuantum method is:</p>
1134 void PixelSetGreenQuantum(PixelWand *wand,const Quantum green)
1137 <p>A description of each parameter follows:</p>
1140 <p>the pixel wand.</p>
1143 <p>the green color.</p>
1146 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetHSL">PixelSetHSL</a></h2>
1147 <div class="doc-section">
1149 <p>PixelSetHSL() sets the normalized HSL color of the pixel wand.</p>
1151 <p>The format of the PixelSetHSL method is:</p>
1154 void PixelSetHSL(PixelWand *wand,const double hue,
1155 const double saturation,const double lightness)
1158 <p>A description of each parameter follows:</p>
1161 <p>the pixel wand.</p>
1163 <h5>hue,saturation,lightness</h5>
1164 <p>Return the pixel hue, saturation, and brightness.</p>
1167 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetIndex">PixelSetIndex</a></h2>
1168 <div class="doc-section">
1170 <p>PixelSetIndex() sets the colormap index of the pixel wand.</p>
1172 <p>The format of the PixelSetIndex method is:</p>
1175 void PixelSetIndex(PixelWand *wand,const IndexPacket index)
1178 <p>A description of each parameter follows:</p>
1181 <p>the pixel wand.</p>
1184 <p>the colormap index.</p>
1187 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagenta">PixelSetMagenta</a></h2>
1188 <div class="doc-section">
1190 <p>PixelSetMagenta() sets the normalized magenta color of the pixel wand.</p>
1192 <p>The format of the PixelSetMagenta method is:</p>
1195 void PixelSetMagenta(PixelWand *wand,const double magenta)
1198 <p>A description of each parameter follows:</p>
1201 <p>the pixel wand.</p>
1204 <p>the magenta color.</p>
1207 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></h2>
1208 <div class="doc-section">
1210 <p>PixelSetMagentaQuantum() sets the magenta color of the pixel wand.</p>
1212 <p>The format of the PixelSetMagentaQuantum method is:</p>
1215 void PixelSetMagentaQuantum(PixelWand *wand,
1216 const Quantum magenta)
1219 <p>A description of each parameter follows:</p>
1222 <p>the pixel wand.</p>
1225 <p>the green magenta.</p>
1228 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagickColor">PixelSetMagickColor</a></h2>
1229 <div class="doc-section">
1231 <p>PixelSetMagickColor() sets the color of the pixel wand.</p>
1233 <p>The format of the PixelSetMagickColor method is:</p>
1236 PixelSetMagickColor(PixelWand *wand,const MagickPixelPacket *color)
1239 <p>A description of each parameter follows:</p>
1242 <p>the pixel wand.</p>
1245 <p>the pixel wand color.</p>
1248 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacity">PixelSetOpacity</a></h2>
1249 <div class="doc-section">
1251 <p>PixelSetOpacity() sets the normalized opacity color of the pixel wand.</p>
1253 <p>The format of the PixelSetOpacity method is:</p>
1256 void PixelSetOpacity(PixelWand *wand,const double opacity)
1259 <p>A description of each parameter follows:</p>
1262 <p>the pixel wand.</p>
1265 <p>the opacity color.</p>
1268 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacityQuantum">PixelSetOpacityQuantum</a></h2>
1269 <div class="doc-section">
1271 <p>PixelSetOpacityQuantum() sets the opacity color of the pixel wand.</p>
1273 <p>The format of the PixelSetOpacityQuantum method is:</p>
1276 void PixelSetOpacityQuantum(PixelWand *wand,
1277 const Quantum opacity)
1280 <p>A description of each parameter follows:</p>
1283 <p>the pixel wand.</p>
1286 <p>the opacity color.</p>
1289 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetQuantumColor">PixelSetQuantumColor</a></h2>
1290 <div class="doc-section">
1292 <p>PixelSetQuantumColor() sets the color of the pixel wand.</p>
1294 <p>The format of the PixelSetQuantumColor method is:</p>
1297 PixelSetQuantumColor(PixelWand *wand,const PixelPacket *color)
1300 <p>A description of each parameter follows:</p>
1303 <p>the pixel wand.</p>
1306 <p>the pixel wand color.</p>
1309 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRed">PixelSetRed</a></h2>
1310 <div class="doc-section">
1312 <p>PixelSetRed() sets the normalized red color of the pixel wand.</p>
1314 <p>The format of the PixelSetRed method is:</p>
1317 void PixelSetRed(PixelWand *wand,const double red)
1320 <p>A description of each parameter follows:</p>
1323 <p>the pixel wand.</p>
1326 <p>the red color.</p>
1329 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRedQuantum">PixelSetRedQuantum</a></h2>
1330 <div class="doc-section">
1332 <p>PixelSetRedQuantum() sets the red color of the pixel wand.</p>
1334 <p>The format of the PixelSetRedQuantum method is:</p>
1337 void PixelSetRedQuantum(PixelWand *wand,const Quantum red)
1340 <p>A description of each parameter follows:</p>
1343 <p>the pixel wand.</p>
1346 <p>the red color.</p>
1349 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellow">PixelSetYellow</a></h2>
1350 <div class="doc-section">
1352 <p>PixelSetYellow() sets the normalized yellow color of the pixel wand.</p>
1354 <p>The format of the PixelSetYellow method is:</p>
1357 void PixelSetYellow(PixelWand *wand,const double yellow)
1360 <p>A description of each parameter follows:</p>
1363 <p>the pixel wand.</p>
1366 <p>the yellow color.</p>
1369 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellowQuantum">PixelSetYellowQuantum</a></h2>
1370 <div class="doc-section">
1372 <p>PixelSetYellowQuantum() sets the yellow color of the pixel wand.</p>
1374 <p>The format of the PixelSetYellowQuantum method is:</p>
1377 void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow)
1380 <p>A description of each parameter follows:</p>
1383 <p>the pixel wand.</p>
1386 <p>the yellow color.</p>
1392 <div id="linkbar">
\r
1393 <span id="linkbar-west"> </span>
\r
1394 <span id="linkbar-center">
\r
1395 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
1396 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
1398 <span id="linkbar-east"> </span>
\r
1400 <div class="footer">
\r
1401 <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
\r
1402 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
1404 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
1405 <script type="text/javascript">
\r
1406 var _gaq = _gaq || [];
\r
1407 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
1408 _gaq.push(['_trackPageview']);
\r
1411 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
1412 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
1413 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r