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 <div style="margin: 17px auto; float: left;">
\r
53 <script type="text/javascript">
\r
55 google_ad_client = "pub-3129977114552745";
\r
56 google_ad_slot = "5439289906";
\r
57 google_ad_width = 728;
\r
58 google_ad_height = 90;
\r
61 <script type="text/javascript"
\r
62 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
65 <a href="http://www.imagemagick.org/discourse-server/">
\r
66 <img src="../../images/logo.jpg"
\r
67 alt="ImageMagick Logo"
\r
68 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
\r
69 <a href="../../index.html">
\r
70 <img src="../../images/sprite.jpg"
\r
71 alt="ImageMagick Sprite"
\r
72 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
75 <div class="westbar">
\r
78 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
80 <div class="sep"></div>
\r
82 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
85 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
88 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
91 <a title="Binary Release: iPhone" href="../../www/binary-releases.html#iPhone">iPhone</a>
94 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
96 <div class="sep"></div>
\r
98 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
101 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
104 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
107 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
110 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
113 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
116 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
119 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
122 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
124 <div class="sep"></div>
\r
126 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
129 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
132 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
135 <a title="Resources" href="../../www/resources.html">Resources</a>
138 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
141 <a title="Download" href="../../www/download.html">Download</a>
143 <div class="sep"></div>
\r
145 <a title="Search" href="../../www/search.html">Search</a>
147 <div class="sep"></div>
\r
149 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
152 <a title="Site Map: Links" href="../../www/links.html">Links</a>
154 <div class="sep"></div>
\r
156 <a rel="follow" title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
158 <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>
161 <div class="sponsbox">
162 <div class="sponsor">
163 <a rel="follow" title="Sponsor: Web Hosting Break" href="http://www.webhostingbreak.com">Web Hosting Break</a><!-- 201109010090 ian@ian-m... -->
165 <div class="sponsor">
166 <a rel="follow" title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
168 <div class="sponsor">
169 <a rel="follow" title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201110010090 alexanian media -->
171 <div class="sponsor">
172 <a rel="follow" title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
174 <div class="sponsor">
175 <a rel="follow" title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
177 <div class="sponsor">
178 <a rel="follow" title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
180 <div class="sponsor">
181 <a rel="follow" title="Sponsor: Web Hosting Reviews" href="http://www.webhostingmasters.com">Web Hosting Reviews</a><!-- 201107011500 affliatelabel -->
183 <div class="sponsor">
184 <a rel="follow" title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
186 <div class="sponsor">
187 <a rel="follow" title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
189 <div class="sponsor">
190 <a rel="follow" title="Sponsor: Notebook Reparatur Berlin" href="http://www.notebook-reparaturen-berlin.de">Notebook Reparatur Berlin</a><!-- 2011060100025 gabi.schulze-->
196 <div class="eastbar">
\r
202 <h1>Module pixel-wand Methods</h1>
203 <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>
205 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClearPixelWand">ClearPixelWand</a></h2>
206 <div class="doc-section">
208 <p>ClearPixelWand() clears resources associated with the wand.</p>
210 <p>The format of the ClearPixelWand method is:</p>
213 void ClearPixelWand(PixelWand *wand)
216 <p>A description of each parameter follows:</p>
219 <p>the pixel wand.</p>
222 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWand">ClonePixelWand</a></h2>
223 <div class="doc-section">
225 <p>ClonePixelWand() makes an exact copy of the specified wand.</p>
227 <p>The format of the ClonePixelWand method is:</p>
230 PixelWand *ClonePixelWand(const PixelWand *wand)
233 <p>A description of each parameter follows:</p>
236 <p>the magick wand.</p>
239 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWands">ClonePixelWands</a></h2>
240 <div class="doc-section">
242 <p>ClonePixelWands() makes an exact copy of the specified wands.</p>
244 <p>The format of the ClonePixelWands method is:</p>
247 PixelWand **ClonePixelWands(const PixelWand **wands,
248 const size_t number_wands)
251 <p>A description of each parameter follows:</p>
254 <p>the magick wands.</p>
256 <h5>number_wands</h5>
257 <p>the number of wands.</p>
260 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWand">DestroyPixelWand</a></h2>
261 <div class="doc-section">
263 <p>DestroyPixelWand() deallocates resources associated with a PixelWand.</p>
265 <p>The format of the DestroyPixelWand method is:</p>
268 PixelWand *DestroyPixelWand(PixelWand *wand)
271 <p>A description of each parameter follows:</p>
274 <p>the pixel wand.</p>
277 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWands">DestroyPixelWands</a></h2>
278 <div class="doc-section">
280 <p>DestroyPixelWands() deallocates resources associated with an array of pixel wands.</p>
282 <p>The format of the DestroyPixelWands method is:</p>
285 PixelWand **DestroyPixelWands(PixelWand **wand,
286 const size_t number_wands)
289 <p>A description of each parameter follows:</p>
292 <p>the pixel wand.</p>
294 <h5>number_wands</h5>
295 <p>the number of wands.</p>
298 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWandSimilar">IsPixelWandSimilar</a></h2>
299 <div class="doc-section">
301 <p>IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.</p>
303 <p>The format of the IsPixelWandSimilar method is:</p>
306 MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q,
310 <p>A description of each parameter follows:</p>
313 <p>the pixel wand.</p>
316 <p>the pixel wand.</p>
319 <p>any two colors that are less than or equal to this distance squared are consider similar.</p>
322 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWand">IsPixelWand</a></h2>
323 <div class="doc-section">
325 <p>IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.</p>
327 <p>The format of the IsPixelWand method is:</p>
330 MagickBooleanType IsPixelWand(const PixelWand *wand)
333 <p>A description of each parameter follows:</p>
336 <p>the magick wand.</p>
339 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWand">NewPixelWand</a></h2>
340 <div class="doc-section">
342 <p>NewPixelWand() returns a new pixel wand.</p>
344 <p>The format of the NewPixelWand method is:</p>
347 PixelWand *NewPixelWand(void)
351 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWands">NewPixelWands</a></h2>
352 <div class="doc-section">
354 <p>NewPixelWands() returns an array of pixel wands.</p>
356 <p>The format of the NewPixelWands method is:</p>
359 PixelWand **NewPixelWands(const size_t number_wands)
362 <p>A description of each parameter follows:</p>
364 <h5>number_wands</h5>
365 <p>the number of wands.</p>
368 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelClearException">PixelClearException</a></h2>
369 <div class="doc-section">
371 <p>PixelClearException() clear any exceptions associated with the iterator.</p>
373 <p>The format of the PixelClearException method is:</p>
376 MagickBooleanType PixelClearException(PixelWand *wand)
379 <p>A description of each parameter follows:</p>
382 <p>the pixel wand.</p>
385 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlpha">PixelGetAlpha</a></h2>
386 <div class="doc-section">
388 <p>PixelGetAlpha() returns the normalized alpha color of the pixel wand.</p>
390 <p>The format of the PixelGetAlpha method is:</p>
393 double PixelGetAlpha(const PixelWand *wand)
396 <p>A description of each parameter follows:</p>
399 <p>the pixel wand.</p>
402 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></h2>
403 <div class="doc-section">
405 <p>PixelGetAlphaQuantum() returns the alpha value of the pixel wand.</p>
407 <p>The format of the PixelGetAlphaQuantum method is:</p>
410 Quantum PixelGetAlphaQuantum(const PixelWand *wand)
413 <p>A description of each parameter follows:</p>
416 <p>the pixel wand.</p>
419 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlack">PixelGetBlack</a></h2>
420 <div class="doc-section">
422 <p>PixelGetBlack() returns the normalized black color of the pixel wand.</p>
424 <p>The format of the PixelGetBlack method is:</p>
427 double PixelGetBlack(const PixelWand *wand)
430 <p>A description of each parameter follows:</p>
433 <p>the pixel wand.</p>
436 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlackQuantum">PixelGetBlackQuantum</a></h2>
437 <div class="doc-section">
439 <p>PixelGetBlackQuantum() returns the black color of the pixel wand.</p>
441 <p>The format of the PixelGetBlackQuantum method is:</p>
444 Quantum PixelGetBlackQuantum(const PixelWand *wand)
447 <p>A description of each parameter follows:</p>
450 <p>the pixel wand.</p>
453 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlue">PixelGetBlue</a></h2>
454 <div class="doc-section">
456 <p>PixelGetBlue() returns the normalized blue color of the pixel wand.</p>
458 <p>The format of the PixelGetBlue method is:</p>
461 double PixelGetBlue(const PixelWand *wand)
464 <p>A description of each parameter follows:</p>
467 <p>the pixel wand.</p>
470 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlueQuantum">PixelGetBlueQuantum</a></h2>
471 <div class="doc-section">
473 <p>PixelGetBlueQuantum() returns the blue color of the pixel wand.</p>
475 <p>The format of the PixelGetBlueQuantum method is:</p>
478 Quantum PixelGetBlueQuantum(const PixelWand *wand)
481 <p>A description of each parameter follows:</p>
484 <p>the pixel wand.</p>
487 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsString">PixelGetColorAsString</a></h2>
488 <div class="doc-section">
490 <p>PixelGetColorAsString() returnsd the color of the pixel wand as a string.</p>
492 <p>The format of the PixelGetColorAsString method is:</p>
495 char *PixelGetColorAsString(PixelWand *wand)
498 <p>A description of each parameter follows:</p>
501 <p>the pixel wand.</p>
504 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a></h2>
505 <div class="doc-section">
507 <p>PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.</p>
509 <p>The format of the PixelGetColorAsNormalizedString method is:</p>
512 char *PixelGetColorAsNormalizedString(PixelWand *wand)
515 <p>A description of each parameter follows:</p>
518 <p>the pixel wand.</p>
521 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorCount">PixelGetColorCount</a></h2>
522 <div class="doc-section">
524 <p>PixelGetColorCount() returns the color count associated with this color.</p>
526 <p>The format of the PixelGetColorCount method is:</p>
529 size_t PixelGetColorCount(const PixelWand *wand)
532 <p>A description of each parameter follows:</p>
535 <p>the pixel wand.</p>
538 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyan">PixelGetCyan</a></h2>
539 <div class="doc-section">
541 <p>PixelGetCyan() returns the normalized cyan color of the pixel wand.</p>
543 <p>The format of the PixelGetCyan method is:</p>
546 double PixelGetCyan(const PixelWand *wand)
549 <p>A description of each parameter follows:</p>
552 <p>the pixel wand.</p>
555 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyanQuantum">PixelGetCyanQuantum</a></h2>
556 <div class="doc-section">
558 <p>PixelGetCyanQuantum() returns the cyan color of the pixel wand.</p>
560 <p>The format of the PixelGetCyanQuantum method is:</p>
563 Quantum PixelGetCyanQuantum(const PixelWand *wand)
566 <p>A description of each parameter follows:</p>
569 <p>the pixel wand.</p>
572 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetException">PixelGetException</a></h2>
573 <div class="doc-section">
575 <p>PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
577 <p>The format of the PixelGetException method is:</p>
580 char *PixelGetException(const PixelWand *wand,ExceptionType *severity)
583 <p>A description of each parameter follows:</p>
586 <p>the pixel wand.</p>
589 <p>the severity of the error is returned here.</p>
592 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetExceptionType">PixelGetExceptionType</a></h2>
593 <div class="doc-section">
595 <p>PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
597 <p>The format of the PixelGetExceptionType method is:</p>
600 ExceptionType PixelGetExceptionType(const PixelWand *wand)
603 <p>A description of each parameter follows:</p>
606 <p>the magick wand.</p>
609 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetFuzz">PixelGetFuzz</a></h2>
610 <div class="doc-section">
612 <p>PixelGetFuzz() returns the normalized fuzz value of the pixel wand.</p>
614 <p>The format of the PixelGetFuzz method is:</p>
617 double PixelGetFuzz(const PixelWand *wand)
620 <p>A description of each parameter follows:</p>
623 <p>the pixel wand.</p>
626 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreen">PixelGetGreen</a></h2>
627 <div class="doc-section">
629 <p>PixelGetGreen() returns the normalized green color of the pixel wand.</p>
631 <p>The format of the PixelGetGreen method is:</p>
634 double PixelGetGreen(const PixelWand *wand)
637 <p>A description of each parameter follows:</p>
640 <p>the pixel wand.</p>
643 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreenQuantum">PixelGetGreenQuantum</a></h2>
644 <div class="doc-section">
646 <p>PixelGetGreenQuantum() returns the green color of the pixel wand.</p>
648 <p>The format of the PixelGetGreenQuantum method is:</p>
651 Quantum PixelGetGreenQuantum(const PixelWand *wand)
654 <p>A description of each parameter follows:</p>
657 <p>the pixel wand.</p>
660 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetHSL">PixelGetHSL</a></h2>
661 <div class="doc-section">
663 <p>PixelGetHSL() returns the normalized HSL color of the pixel wand.</p>
665 <p>The format of the PixelGetHSL method is:</p>
668 void PixelGetHSL(const PixelWand *wand,double *hue,double *saturation,
672 <p>A description of each parameter follows:</p>
675 <p>the pixel wand.</p>
677 <h5>hue,saturation,lightness</h5>
678 <p>Return the pixel hue, saturation, and brightness.</p>
681 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetIndex">PixelGetIndex</a></h2>
682 <div class="doc-section">
684 <p>PixelGetIndex() returns the colormap index from the pixel wand.</p>
686 <p>The format of the PixelGetIndex method is:</p>
689 IndexPacket PixelGetIndex(const PixelWand *wand)
692 <p>A description of each parameter follows:</p>
695 <p>the pixel wand.</p>
698 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagenta">PixelGetMagenta</a></h2>
699 <div class="doc-section">
701 <p>PixelGetMagenta() returns the normalized magenta color of the pixel wand.</p>
703 <p>The format of the PixelGetMagenta method is:</p>
706 double PixelGetMagenta(const PixelWand *wand)
709 <p>A description of each parameter follows:</p>
712 <p>the pixel wand.</p>
715 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></h2>
716 <div class="doc-section">
718 <p>PixelGetMagentaQuantum() returns the magenta color of the pixel wand.</p>
720 <p>The format of the PixelGetMagentaQuantum method is:</p>
723 Quantum PixelGetMagentaQuantum(const PixelWand *wand)
726 <p>A description of each parameter follows:</p>
729 <p>the pixel wand.</p>
732 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagickColor">PixelGetMagickColor</a></h2>
733 <div class="doc-section">
735 <p>PixelGetMagickColor() gets the magick color of the pixel wand.</p>
737 <p>The format of the PixelGetMagickColor method is:</p>
740 void PixelGetMagickColor(PixelWand *wand,MagickPixelPacket *color)
743 <p>A description of each parameter follows:</p>
746 <p>the pixel wand.</p>
749 <p>The pixel wand color is returned here.</p>
752 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacity">PixelGetOpacity</a></h2>
753 <div class="doc-section">
755 <p>PixelGetOpacity() returns the normalized opacity color of the pixel wand.</p>
757 <p>The format of the PixelGetOpacity method is:</p>
760 double PixelGetOpacity(const PixelWand *wand)
763 <p>A description of each parameter follows:</p>
766 <p>the pixel wand.</p>
769 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacityQuantum">PixelGetOpacityQuantum</a></h2>
770 <div class="doc-section">
772 <p>PixelGetOpacityQuantum() returns the opacity color of the pixel wand.</p>
774 <p>The format of the PixelGetOpacityQuantum method is:</p>
777 Quantum PixelGetOpacityQuantum(const PixelWand *wand)
780 <p>A description of each parameter follows:</p>
783 <p>the pixel wand.</p>
786 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumColor">PixelGetQuantumColor</a></h2>
787 <div class="doc-section">
789 <p>PixelGetQuantumColor() gets the color of the pixel wand as a PixelPacket.</p>
791 <p>The format of the PixelGetQuantumColor method is:</p>
794 void PixelGetQuantumColor(PixelWand *wand,PixelPacket *color)
797 <p>A description of each parameter follows:</p>
800 <p>the pixel wand.</p>
803 <p>The pixel wand color is returned here.</p>
806 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRed">PixelGetRed</a></h2>
807 <div class="doc-section">
809 <p>PixelGetRed() returns the normalized red color of the pixel wand.</p>
811 <p>The format of the PixelGetRed method is:</p>
814 double PixelGetRed(const PixelWand *wand)
817 <p>A description of each parameter follows:</p>
820 <p>the pixel wand.</p>
823 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRedQuantum">PixelGetRedQuantum</a></h2>
824 <div class="doc-section">
826 <p>PixelGetRedQuantum() returns the red color of the pixel wand.</p>
828 <p>The format of the PixelGetRedQuantum method is:</p>
831 Quantum PixelGetRedQuantum(const PixelWand *wand)
834 <p>A description of each parameter follows:</p>
837 <p>the pixel wand.</p>
840 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellow">PixelGetYellow</a></h2>
841 <div class="doc-section">
843 <p>PixelGetYellow() returns the normalized yellow color of the pixel wand.</p>
845 <p>The format of the PixelGetYellow method is:</p>
848 double PixelGetYellow(const PixelWand *wand)
851 <p>A description of each parameter follows:</p>
854 <p>the pixel wand.</p>
857 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellowQuantum">PixelGetYellowQuantum</a></h2>
858 <div class="doc-section">
860 <p>PixelGetYellowQuantum() returns the yellow color of the pixel wand.</p>
862 <p>The format of the PixelGetYellowQuantum method is:</p>
865 Quantum PixelGetYellowQuantum(const PixelWand *wand)
868 <p>A description of each parameter follows:</p>
871 <p>the pixel wand.</p>
874 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlpha">PixelSetAlpha</a></h2>
875 <div class="doc-section">
877 <p>PixelSetAlpha() sets the normalized alpha color of the pixel wand.</p>
879 <p>The format of the PixelSetAlpha method is:</p>
882 void PixelSetAlpha(PixelWand *wand,const double alpha)
885 <p>A description of each parameter follows:</p>
888 <p>the pixel wand.</p>
891 <p>the level of transparency: 1.0 is fully opaque and 0.0 is fully transparent.</p>
894 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></h2>
895 <div class="doc-section">
897 <p>PixelSetAlphaQuantum() sets the alpha color of the pixel wand.</p>
899 <p>The format of the PixelSetAlphaQuantum method is:</p>
902 void PixelSetAlphaQuantum(PixelWand *wand,
903 const Quantum opacity)
906 <p>A description of each parameter follows:</p>
909 <p>the pixel wand.</p>
912 <p>the opacity color.</p>
915 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlack">PixelSetBlack</a></h2>
916 <div class="doc-section">
918 <p>PixelSetBlack() sets the normalized black color of the pixel wand.</p>
920 <p>The format of the PixelSetBlack method is:</p>
923 void PixelSetBlack(PixelWand *wand,const double black)
926 <p>A description of each parameter follows:</p>
929 <p>the pixel wand.</p>
932 <p>the black color.</p>
935 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlackQuantum">PixelSetBlackQuantum</a></h2>
936 <div class="doc-section">
938 <p>PixelSetBlackQuantum() sets the black color of the pixel wand.</p>
940 <p>The format of the PixelSetBlackQuantum method is:</p>
943 void PixelSetBlackQuantum(PixelWand *wand,const Quantum black)
946 <p>A description of each parameter follows:</p>
949 <p>the pixel wand.</p>
952 <p>the black color.</p>
955 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlue">PixelSetBlue</a></h2>
956 <div class="doc-section">
958 <p>PixelSetBlue() sets the normalized blue color of the pixel wand.</p>
960 <p>The format of the PixelSetBlue method is:</p>
963 void PixelSetBlue(PixelWand *wand,const double blue)
966 <p>A description of each parameter follows:</p>
969 <p>the pixel wand.</p>
972 <p>the blue color.</p>
975 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlueQuantum">PixelSetBlueQuantum</a></h2>
976 <div class="doc-section">
978 <p>PixelSetBlueQuantum() sets the blue color of the pixel wand.</p>
980 <p>The format of the PixelSetBlueQuantum method is:</p>
983 void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue)
986 <p>A description of each parameter follows:</p>
989 <p>the pixel wand.</p>
992 <p>the blue color.</p>
995 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColor">PixelSetColor</a></h2>
996 <div class="doc-section">
998 <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>
1000 <p>The format of the PixelSetColor method is:</p>
1003 MagickBooleanType PixelSetColor(PixelWand *wand,const char *color)
1006 <p>A description of each parameter follows:</p>
1009 <p>the pixel wand.</p>
1012 <p>the pixel wand color.</p>
1015 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorCount">PixelSetColorCount</a></h2>
1016 <div class="doc-section">
1018 <p>PixelSetColorCount() sets the color count of the pixel wand.</p>
1020 <p>The format of the PixelSetColorCount method is:</p>
1023 void PixelSetColorCount(PixelWand *wand,const size_t count)
1026 <p>A description of each parameter follows:</p>
1029 <p>the pixel wand.</p>
1032 <p>the number of this particular color.</p>
1035 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorFromWand">PixelSetColorFromWand</a></h2>
1036 <div class="doc-section">
1038 <p>PixelSetColorFromWand() sets the color of the pixel wand.</p>
1040 <p>The format of the PixelSetColorFromWand method is:</p>
1043 PixelSetColorFromWand(PixelWand *wand,const PixelWand *color)
1046 <p>A description of each parameter follows:</p>
1049 <p>the pixel wand.</p>
1052 <p>set the pixel wand color here.</p>
1055 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyan">PixelSetCyan</a></h2>
1056 <div class="doc-section">
1058 <p>PixelSetCyan() sets the normalized cyan color of the pixel wand.</p>
1060 <p>The format of the PixelSetCyan method is:</p>
1063 void PixelSetCyan(PixelWand *wand,const double cyan)
1066 <p>A description of each parameter follows:</p>
1069 <p>the pixel wand.</p>
1072 <p>the cyan color.</p>
1075 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyanQuantum">PixelSetCyanQuantum</a></h2>
1076 <div class="doc-section">
1078 <p>PixelSetCyanQuantum() sets the cyan color of the pixel wand.</p>
1080 <p>The format of the PixelSetCyanQuantum method is:</p>
1083 void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan)
1086 <p>A description of each parameter follows:</p>
1089 <p>the pixel wand.</p>
1092 <p>the cyan color.</p>
1095 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetFuzz">PixelSetFuzz</a></h2>
1096 <div class="doc-section">
1098 <p>PixelSetFuzz() sets the fuzz value of the pixel wand.</p>
1100 <p>The format of the PixelSetFuzz method is:</p>
1103 void PixelSetFuzz(PixelWand *wand,const double fuzz)
1106 <p>A description of each parameter follows:</p>
1109 <p>the pixel wand.</p>
1112 <p>the fuzz value.</p>
1115 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreen">PixelSetGreen</a></h2>
1116 <div class="doc-section">
1118 <p>PixelSetGreen() sets the normalized green color of the pixel wand.</p>
1120 <p>The format of the PixelSetGreen method is:</p>
1123 void PixelSetGreen(PixelWand *wand,const double green)
1126 <p>A description of each parameter follows:</p>
1129 <p>the pixel wand.</p>
1132 <p>the green color.</p>
1135 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreenQuantum">PixelSetGreenQuantum</a></h2>
1136 <div class="doc-section">
1138 <p>PixelSetGreenQuantum() sets the green color of the pixel wand.</p>
1140 <p>The format of the PixelSetGreenQuantum method is:</p>
1143 void PixelSetGreenQuantum(PixelWand *wand,const Quantum green)
1146 <p>A description of each parameter follows:</p>
1149 <p>the pixel wand.</p>
1152 <p>the green color.</p>
1155 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetHSL">PixelSetHSL</a></h2>
1156 <div class="doc-section">
1158 <p>PixelSetHSL() sets the normalized HSL color of the pixel wand.</p>
1160 <p>The format of the PixelSetHSL method is:</p>
1163 void PixelSetHSL(PixelWand *wand,const double hue,
1164 const double saturation,const double lightness)
1167 <p>A description of each parameter follows:</p>
1170 <p>the pixel wand.</p>
1172 <h5>hue,saturation,lightness</h5>
1173 <p>Return the pixel hue, saturation, and brightness.</p>
1176 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetIndex">PixelSetIndex</a></h2>
1177 <div class="doc-section">
1179 <p>PixelSetIndex() sets the colormap index of the pixel wand.</p>
1181 <p>The format of the PixelSetIndex method is:</p>
1184 void PixelSetIndex(PixelWand *wand,const IndexPacket index)
1187 <p>A description of each parameter follows:</p>
1190 <p>the pixel wand.</p>
1193 <p>the colormap index.</p>
1196 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagenta">PixelSetMagenta</a></h2>
1197 <div class="doc-section">
1199 <p>PixelSetMagenta() sets the normalized magenta color of the pixel wand.</p>
1201 <p>The format of the PixelSetMagenta method is:</p>
1204 void PixelSetMagenta(PixelWand *wand,const double magenta)
1207 <p>A description of each parameter follows:</p>
1210 <p>the pixel wand.</p>
1213 <p>the magenta color.</p>
1216 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></h2>
1217 <div class="doc-section">
1219 <p>PixelSetMagentaQuantum() sets the magenta color of the pixel wand.</p>
1221 <p>The format of the PixelSetMagentaQuantum method is:</p>
1224 void PixelSetMagentaQuantum(PixelWand *wand,
1225 const Quantum magenta)
1228 <p>A description of each parameter follows:</p>
1231 <p>the pixel wand.</p>
1234 <p>the green magenta.</p>
1237 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagickColor">PixelSetMagickColor</a></h2>
1238 <div class="doc-section">
1240 <p>PixelSetMagickColor() sets the color of the pixel wand.</p>
1242 <p>The format of the PixelSetMagickColor method is:</p>
1245 PixelSetMagickColor(PixelWand *wand,const MagickPixelPacket *color)
1248 <p>A description of each parameter follows:</p>
1251 <p>the pixel wand.</p>
1254 <p>the pixel wand color.</p>
1257 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacity">PixelSetOpacity</a></h2>
1258 <div class="doc-section">
1260 <p>PixelSetOpacity() sets the normalized opacity color of the pixel wand.</p>
1262 <p>The format of the PixelSetOpacity method is:</p>
1265 void PixelSetOpacity(PixelWand *wand,const double opacity)
1268 <p>A description of each parameter follows:</p>
1271 <p>the pixel wand.</p>
1274 <p>the opacity color.</p>
1277 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacityQuantum">PixelSetOpacityQuantum</a></h2>
1278 <div class="doc-section">
1280 <p>PixelSetOpacityQuantum() sets the opacity color of the pixel wand.</p>
1282 <p>The format of the PixelSetOpacityQuantum method is:</p>
1285 void PixelSetOpacityQuantum(PixelWand *wand,
1286 const Quantum opacity)
1289 <p>A description of each parameter follows:</p>
1292 <p>the pixel wand.</p>
1295 <p>the opacity color.</p>
1298 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetQuantumColor">PixelSetQuantumColor</a></h2>
1299 <div class="doc-section">
1301 <p>PixelSetQuantumColor() sets the color of the pixel wand.</p>
1303 <p>The format of the PixelSetQuantumColor method is:</p>
1306 PixelSetQuantumColor(PixelWand *wand,const PixelPacket *color)
1309 <p>A description of each parameter follows:</p>
1312 <p>the pixel wand.</p>
1315 <p>the pixel wand color.</p>
1318 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRed">PixelSetRed</a></h2>
1319 <div class="doc-section">
1321 <p>PixelSetRed() sets the normalized red color of the pixel wand.</p>
1323 <p>The format of the PixelSetRed method is:</p>
1326 void PixelSetRed(PixelWand *wand,const double red)
1329 <p>A description of each parameter follows:</p>
1332 <p>the pixel wand.</p>
1335 <p>the red color.</p>
1338 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRedQuantum">PixelSetRedQuantum</a></h2>
1339 <div class="doc-section">
1341 <p>PixelSetRedQuantum() sets the red color of the pixel wand.</p>
1343 <p>The format of the PixelSetRedQuantum method is:</p>
1346 void PixelSetRedQuantum(PixelWand *wand,const Quantum red)
1349 <p>A description of each parameter follows:</p>
1352 <p>the pixel wand.</p>
1355 <p>the red color.</p>
1358 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellow">PixelSetYellow</a></h2>
1359 <div class="doc-section">
1361 <p>PixelSetYellow() sets the normalized yellow color of the pixel wand.</p>
1363 <p>The format of the PixelSetYellow method is:</p>
1366 void PixelSetYellow(PixelWand *wand,const double yellow)
1369 <p>A description of each parameter follows:</p>
1372 <p>the pixel wand.</p>
1375 <p>the yellow color.</p>
1378 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellowQuantum">PixelSetYellowQuantum</a></h2>
1379 <div class="doc-section">
1381 <p>PixelSetYellowQuantum() sets the yellow color of the pixel wand.</p>
1383 <p>The format of the PixelSetYellowQuantum method is:</p>
1386 void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow)
1389 <p>A description of each parameter follows:</p>
1392 <p>the pixel wand.</p>
1395 <p>the yellow color.</p>
1401 <div id="linkbar">
\r
1402 <span id="linkbar-west"> </span>
\r
1403 <span id="linkbar-center">
\r
1404 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
1405 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
1407 <span id="linkbar-east"> </span>
\r
1409 <div class="footer">
\r
1410 <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
\r
1411 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
1413 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
1414 <script type="text/javascript">
\r
1415 var _gaq = _gaq || [];
\r
1416 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
1417 _gaq.push(['_trackPageview']);
\r
1420 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
1421 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
1422 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r