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: iPhone" href="../../www/binary-releases.html#iPhone">iPhone</a>
87 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
89 <div class="sep"></div>
\r
91 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
94 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
97 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
100 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
103 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
106 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
109 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
112 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
115 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
117 <div class="sep"></div>
\r
119 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
122 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
125 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
128 <a title="Resources" href="../../www/resources.html">Resources</a>
131 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
134 <a title="Download" href="../../www/download.html">Download</a>
136 <div class="sep"></div>
\r
138 <a title="Search" href="../../www/search.html">Search</a>
140 <div class="sep"></div>
\r
142 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
145 <a title="Site Map: Links" href="../../www/links.html">Links</a>
147 <div class="sep"></div>
\r
149 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
151 <div class="sponsbox">
152 <div class="sponsor">
153 <a title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
155 <div class="sponsor">
156 <a title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201106010090 alexanian media -->
158 <div class="sponsor">
159 <a title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201107010240 r.leo -->
161 <div class="sponsor">
162 <a title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
164 <div class="sponsor">
165 <a title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
167 <div class="sponsor">
168 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
170 <div class="sponsor">
171 <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
173 <div class="sponsor">
174 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
176 <div class="sponsor">
177 <a title="Sponsor: alaTest.com" href="http://alatest.com">alaTest.com</a><!-- 20110801000300 -->
183 <div class="eastbar">
\r
184 <script type="text/javascript">
\r
186 google_ad_client = "pub-3129977114552745";
\r
187 google_ad_slot = "0574824969";
\r
188 google_ad_width = 160;
\r
189 google_ad_height = 600;
\r
192 <script type="text/javascript"
\r
193 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
199 <h1>Module pixel-wand Methods</h1>
200 <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>
202 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClearPixelWand">ClearPixelWand</a></h2>
203 <div class="doc-section">
205 <p>ClearPixelWand() clears resources associated with the wand.</p>
207 <p>The format of the ClearPixelWand method is:</p>
210 void ClearPixelWand(PixelWand *wand)
213 <p>A description of each parameter follows:</p>
216 <p>the pixel wand.</p>
219 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWand">ClonePixelWand</a></h2>
220 <div class="doc-section">
222 <p>ClonePixelWand() makes an exact copy of the specified wand.</p>
224 <p>The format of the ClonePixelWand method is:</p>
227 PixelWand *ClonePixelWand(const PixelWand *wand)
230 <p>A description of each parameter follows:</p>
233 <p>the magick wand.</p>
236 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="ClonePixelWands">ClonePixelWands</a></h2>
237 <div class="doc-section">
239 <p>ClonePixelWands() makes an exact copy of the specified wands.</p>
241 <p>The format of the ClonePixelWands method is:</p>
244 PixelWand **ClonePixelWands(const PixelWand **wands,
245 const size_t number_wands)
248 <p>A description of each parameter follows:</p>
251 <p>the magick wands.</p>
253 <h5>number_wands</h5>
254 <p>the number of wands.</p>
257 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWand">DestroyPixelWand</a></h2>
258 <div class="doc-section">
260 <p>DestroyPixelWand() deallocates resources associated with a PixelWand.</p>
262 <p>The format of the DestroyPixelWand method is:</p>
265 PixelWand *DestroyPixelWand(PixelWand *wand)
268 <p>A description of each parameter follows:</p>
271 <p>the pixel wand.</p>
274 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="DestroyPixelWands">DestroyPixelWands</a></h2>
275 <div class="doc-section">
277 <p>DestroyPixelWands() deallocates resources associated with an array of pixel wands.</p>
279 <p>The format of the DestroyPixelWands method is:</p>
282 PixelWand **DestroyPixelWands(PixelWand **wand,
283 const size_t number_wands)
286 <p>A description of each parameter follows:</p>
289 <p>the pixel wand.</p>
291 <h5>number_wands</h5>
292 <p>the number of wands.</p>
295 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWandSimilar">IsPixelWandSimilar</a></h2>
296 <div class="doc-section">
298 <p>IsPixelWandSimilar() returns MagickTrue if the distance between two colors is less than the specified distance.</p>
300 <p>The format of the IsPixelWandSimilar method is:</p>
303 MagickBooleanType IsPixelWandSimilar(PixelWand *p,PixelWand *q,
307 <p>A description of each parameter follows:</p>
310 <p>the pixel wand.</p>
313 <p>the pixel wand.</p>
316 <p>any two colors that are less than or equal to this distance squared are consider similar.</p>
319 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="IsPixelWand">IsPixelWand</a></h2>
320 <div class="doc-section">
322 <p>IsPixelWand() returns MagickTrue if the wand is verified as a pixel wand.</p>
324 <p>The format of the IsPixelWand method is:</p>
327 MagickBooleanType IsPixelWand(const PixelWand *wand)
330 <p>A description of each parameter follows:</p>
333 <p>the magick wand.</p>
336 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWand">NewPixelWand</a></h2>
337 <div class="doc-section">
339 <p>NewPixelWand() returns a new pixel wand.</p>
341 <p>The format of the NewPixelWand method is:</p>
344 PixelWand *NewPixelWand(void)
348 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="NewPixelWands">NewPixelWands</a></h2>
349 <div class="doc-section">
351 <p>NewPixelWands() returns an array of pixel wands.</p>
353 <p>The format of the NewPixelWands method is:</p>
356 PixelWand **NewPixelWands(const size_t number_wands)
359 <p>A description of each parameter follows:</p>
361 <h5>number_wands</h5>
362 <p>the number of wands.</p>
365 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelClearException">PixelClearException</a></h2>
366 <div class="doc-section">
368 <p>PixelClearException() clear any exceptions associated with the iterator.</p>
370 <p>The format of the PixelClearException method is:</p>
373 MagickBooleanType PixelClearException(PixelWand *wand)
376 <p>A description of each parameter follows:</p>
379 <p>the pixel wand.</p>
382 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlpha">PixelGetAlpha</a></h2>
383 <div class="doc-section">
385 <p>PixelGetAlpha() returns the normalized alpha color of the pixel wand.</p>
387 <p>The format of the PixelGetAlpha method is:</p>
390 double PixelGetAlpha(const PixelWand *wand)
393 <p>A description of each parameter follows:</p>
396 <p>the pixel wand.</p>
399 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetAlphaQuantum">PixelGetAlphaQuantum</a></h2>
400 <div class="doc-section">
402 <p>PixelGetAlphaQuantum() returns the alpha value of the pixel wand.</p>
404 <p>The format of the PixelGetAlphaQuantum method is:</p>
407 Quantum PixelGetAlphaQuantum(const PixelWand *wand)
410 <p>A description of each parameter follows:</p>
413 <p>the pixel wand.</p>
416 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlack">PixelGetBlack</a></h2>
417 <div class="doc-section">
419 <p>PixelGetBlack() returns the normalized black color of the pixel wand.</p>
421 <p>The format of the PixelGetBlack method is:</p>
424 double PixelGetBlack(const PixelWand *wand)
427 <p>A description of each parameter follows:</p>
430 <p>the pixel wand.</p>
433 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlackQuantum">PixelGetBlackQuantum</a></h2>
434 <div class="doc-section">
436 <p>PixelGetBlackQuantum() returns the black color of the pixel wand.</p>
438 <p>The format of the PixelGetBlackQuantum method is:</p>
441 Quantum PixelGetBlackQuantum(const PixelWand *wand)
444 <p>A description of each parameter follows:</p>
447 <p>the pixel wand.</p>
450 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlue">PixelGetBlue</a></h2>
451 <div class="doc-section">
453 <p>PixelGetBlue() returns the normalized blue color of the pixel wand.</p>
455 <p>The format of the PixelGetBlue method is:</p>
458 double PixelGetBlue(const PixelWand *wand)
461 <p>A description of each parameter follows:</p>
464 <p>the pixel wand.</p>
467 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetBlueQuantum">PixelGetBlueQuantum</a></h2>
468 <div class="doc-section">
470 <p>PixelGetBlueQuantum() returns the blue color of the pixel wand.</p>
472 <p>The format of the PixelGetBlueQuantum method is:</p>
475 Quantum PixelGetBlueQuantum(const PixelWand *wand)
478 <p>A description of each parameter follows:</p>
481 <p>the pixel wand.</p>
484 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsString">PixelGetColorAsString</a></h2>
485 <div class="doc-section">
487 <p>PixelGetColorAsString() returnsd the color of the pixel wand as a string.</p>
489 <p>The format of the PixelGetColorAsString method is:</p>
492 char *PixelGetColorAsString(PixelWand *wand)
495 <p>A description of each parameter follows:</p>
498 <p>the pixel wand.</p>
501 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorAsNormalizedString">PixelGetColorAsNormalizedString</a></h2>
502 <div class="doc-section">
504 <p>PixelGetColorAsNormalizedString() returns the normalized color of the pixel wand as a string.</p>
506 <p>The format of the PixelGetColorAsNormalizedString method is:</p>
509 char *PixelGetColorAsNormalizedString(PixelWand *wand)
512 <p>A description of each parameter follows:</p>
515 <p>the pixel wand.</p>
518 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetColorCount">PixelGetColorCount</a></h2>
519 <div class="doc-section">
521 <p>PixelGetColorCount() returns the color count associated with this color.</p>
523 <p>The format of the PixelGetColorCount method is:</p>
526 size_t PixelGetColorCount(const PixelWand *wand)
529 <p>A description of each parameter follows:</p>
532 <p>the pixel wand.</p>
535 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyan">PixelGetCyan</a></h2>
536 <div class="doc-section">
538 <p>PixelGetCyan() returns the normalized cyan color of the pixel wand.</p>
540 <p>The format of the PixelGetCyan method is:</p>
543 double PixelGetCyan(const PixelWand *wand)
546 <p>A description of each parameter follows:</p>
549 <p>the pixel wand.</p>
552 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetCyanQuantum">PixelGetCyanQuantum</a></h2>
553 <div class="doc-section">
555 <p>PixelGetCyanQuantum() returns the cyan color of the pixel wand.</p>
557 <p>The format of the PixelGetCyanQuantum method is:</p>
560 Quantum PixelGetCyanQuantum(const PixelWand *wand)
563 <p>A description of each parameter follows:</p>
566 <p>the pixel wand.</p>
569 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetException">PixelGetException</a></h2>
570 <div class="doc-section">
572 <p>PixelGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
574 <p>The format of the PixelGetException method is:</p>
577 char *PixelGetException(const PixelWand *wand,ExceptionType *severity)
580 <p>A description of each parameter follows:</p>
583 <p>the pixel wand.</p>
586 <p>the severity of the error is returned here.</p>
589 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetExceptionType">PixelGetExceptionType</a></h2>
590 <div class="doc-section">
592 <p>PixelGetExceptionType() the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
594 <p>The format of the PixelGetExceptionType method is:</p>
597 ExceptionType PixelGetExceptionType(const PixelWand *wand)
600 <p>A description of each parameter follows:</p>
603 <p>the magick wand.</p>
606 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetFuzz">PixelGetFuzz</a></h2>
607 <div class="doc-section">
609 <p>PixelGetFuzz() returns the normalized fuzz value of the pixel wand.</p>
611 <p>The format of the PixelGetFuzz method is:</p>
614 double PixelGetFuzz(const PixelWand *wand)
617 <p>A description of each parameter follows:</p>
620 <p>the pixel wand.</p>
623 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreen">PixelGetGreen</a></h2>
624 <div class="doc-section">
626 <p>PixelGetGreen() returns the normalized green color of the pixel wand.</p>
628 <p>The format of the PixelGetGreen method is:</p>
631 double PixelGetGreen(const PixelWand *wand)
634 <p>A description of each parameter follows:</p>
637 <p>the pixel wand.</p>
640 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetGreenQuantum">PixelGetGreenQuantum</a></h2>
641 <div class="doc-section">
643 <p>PixelGetGreenQuantum() returns the green color of the pixel wand.</p>
645 <p>The format of the PixelGetGreenQuantum method is:</p>
648 Quantum PixelGetGreenQuantum(const PixelWand *wand)
651 <p>A description of each parameter follows:</p>
654 <p>the pixel wand.</p>
657 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetHSL">PixelGetHSL</a></h2>
658 <div class="doc-section">
660 <p>PixelGetHSL() returns the normalized HSL color of the pixel wand.</p>
662 <p>The format of the PixelGetHSL method is:</p>
665 void PixelGetHSL(const PixelWand *wand,double *hue,double *saturation,
669 <p>A description of each parameter follows:</p>
672 <p>the pixel wand.</p>
674 <h5>hue,saturation,lightness</h5>
675 <p>Return the pixel hue, saturation, and brightness.</p>
678 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetIndex">PixelGetIndex</a></h2>
679 <div class="doc-section">
681 <p>PixelGetIndex() returns the colormap index from the pixel wand.</p>
683 <p>The format of the PixelGetIndex method is:</p>
686 IndexPacket PixelGetIndex(const PixelWand *wand)
689 <p>A description of each parameter follows:</p>
692 <p>the pixel wand.</p>
695 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagenta">PixelGetMagenta</a></h2>
696 <div class="doc-section">
698 <p>PixelGetMagenta() returns the normalized magenta color of the pixel wand.</p>
700 <p>The format of the PixelGetMagenta method is:</p>
703 double PixelGetMagenta(const PixelWand *wand)
706 <p>A description of each parameter follows:</p>
709 <p>the pixel wand.</p>
712 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagentaQuantum">PixelGetMagentaQuantum</a></h2>
713 <div class="doc-section">
715 <p>PixelGetMagentaQuantum() returns the magenta color of the pixel wand.</p>
717 <p>The format of the PixelGetMagentaQuantum method is:</p>
720 Quantum PixelGetMagentaQuantum(const PixelWand *wand)
723 <p>A description of each parameter follows:</p>
726 <p>the pixel wand.</p>
729 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetMagickColor">PixelGetMagickColor</a></h2>
730 <div class="doc-section">
732 <p>PixelGetMagickColor() gets the magick color of the pixel wand.</p>
734 <p>The format of the PixelGetMagickColor method is:</p>
737 void PixelGetMagickColor(PixelWand *wand,MagickPixelPacket *color)
740 <p>A description of each parameter follows:</p>
743 <p>the pixel wand.</p>
746 <p>The pixel wand color is returned here.</p>
749 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacity">PixelGetOpacity</a></h2>
750 <div class="doc-section">
752 <p>PixelGetOpacity() returns the normalized opacity color of the pixel wand.</p>
754 <p>The format of the PixelGetOpacity method is:</p>
757 double PixelGetOpacity(const PixelWand *wand)
760 <p>A description of each parameter follows:</p>
763 <p>the pixel wand.</p>
766 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetOpacityQuantum">PixelGetOpacityQuantum</a></h2>
767 <div class="doc-section">
769 <p>PixelGetOpacityQuantum() returns the opacity color of the pixel wand.</p>
771 <p>The format of the PixelGetOpacityQuantum method is:</p>
774 Quantum PixelGetOpacityQuantum(const PixelWand *wand)
777 <p>A description of each parameter follows:</p>
780 <p>the pixel wand.</p>
783 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetQuantumColor">PixelGetQuantumColor</a></h2>
784 <div class="doc-section">
786 <p>PixelGetQuantumColor() gets the color of the pixel wand as a PixelPacket.</p>
788 <p>The format of the PixelGetQuantumColor method is:</p>
791 void PixelGetQuantumColor(PixelWand *wand,PixelPacket *color)
794 <p>A description of each parameter follows:</p>
797 <p>the pixel wand.</p>
800 <p>The pixel wand color is returned here.</p>
803 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRed">PixelGetRed</a></h2>
804 <div class="doc-section">
806 <p>PixelGetRed() returns the normalized red color of the pixel wand.</p>
808 <p>The format of the PixelGetRed method is:</p>
811 double PixelGetRed(const PixelWand *wand)
814 <p>A description of each parameter follows:</p>
817 <p>the pixel wand.</p>
820 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetRedQuantum">PixelGetRedQuantum</a></h2>
821 <div class="doc-section">
823 <p>PixelGetRedQuantum() returns the red color of the pixel wand.</p>
825 <p>The format of the PixelGetRedQuantum method is:</p>
828 Quantum PixelGetRedQuantum(const PixelWand *wand)
831 <p>A description of each parameter follows:</p>
834 <p>the pixel wand.</p>
837 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellow">PixelGetYellow</a></h2>
838 <div class="doc-section">
840 <p>PixelGetYellow() returns the normalized yellow color of the pixel wand.</p>
842 <p>The format of the PixelGetYellow method is:</p>
845 double PixelGetYellow(const PixelWand *wand)
848 <p>A description of each parameter follows:</p>
851 <p>the pixel wand.</p>
854 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelGetYellowQuantum">PixelGetYellowQuantum</a></h2>
855 <div class="doc-section">
857 <p>PixelGetYellowQuantum() returns the yellow color of the pixel wand.</p>
859 <p>The format of the PixelGetYellowQuantum method is:</p>
862 Quantum PixelGetYellowQuantum(const PixelWand *wand)
865 <p>A description of each parameter follows:</p>
868 <p>the pixel wand.</p>
871 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlpha">PixelSetAlpha</a></h2>
872 <div class="doc-section">
874 <p>PixelSetAlpha() sets the normalized alpha color of the pixel wand.</p>
876 <p>The format of the PixelSetAlpha method is:</p>
879 void PixelSetAlpha(PixelWand *wand,const double alpha)
882 <p>A description of each parameter follows:</p>
885 <p>the pixel wand.</p>
888 <p>the level of transparency: 1.0 is fully opaque and 0.0 is fully transparent.</p>
891 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetAlphaQuantum">PixelSetAlphaQuantum</a></h2>
892 <div class="doc-section">
894 <p>PixelSetAlphaQuantum() sets the alpha color of the pixel wand.</p>
896 <p>The format of the PixelSetAlphaQuantum method is:</p>
899 void PixelSetAlphaQuantum(PixelWand *wand,
900 const Quantum opacity)
903 <p>A description of each parameter follows:</p>
906 <p>the pixel wand.</p>
909 <p>the opacity color.</p>
912 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlack">PixelSetBlack</a></h2>
913 <div class="doc-section">
915 <p>PixelSetBlack() sets the normalized black color of the pixel wand.</p>
917 <p>The format of the PixelSetBlack method is:</p>
920 void PixelSetBlack(PixelWand *wand,const double black)
923 <p>A description of each parameter follows:</p>
926 <p>the pixel wand.</p>
929 <p>the black color.</p>
932 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlackQuantum">PixelSetBlackQuantum</a></h2>
933 <div class="doc-section">
935 <p>PixelSetBlackQuantum() sets the black color of the pixel wand.</p>
937 <p>The format of the PixelSetBlackQuantum method is:</p>
940 void PixelSetBlackQuantum(PixelWand *wand,const Quantum black)
943 <p>A description of each parameter follows:</p>
946 <p>the pixel wand.</p>
949 <p>the black color.</p>
952 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlue">PixelSetBlue</a></h2>
953 <div class="doc-section">
955 <p>PixelSetBlue() sets the normalized blue color of the pixel wand.</p>
957 <p>The format of the PixelSetBlue method is:</p>
960 void PixelSetBlue(PixelWand *wand,const double blue)
963 <p>A description of each parameter follows:</p>
966 <p>the pixel wand.</p>
969 <p>the blue color.</p>
972 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetBlueQuantum">PixelSetBlueQuantum</a></h2>
973 <div class="doc-section">
975 <p>PixelSetBlueQuantum() sets the blue color of the pixel wand.</p>
977 <p>The format of the PixelSetBlueQuantum method is:</p>
980 void PixelSetBlueQuantum(PixelWand *wand,const Quantum blue)
983 <p>A description of each parameter follows:</p>
986 <p>the pixel wand.</p>
989 <p>the blue color.</p>
992 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColor">PixelSetColor</a></h2>
993 <div class="doc-section">
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>
997 <p>The format of the PixelSetColor method is:</p>
1000 MagickBooleanType PixelSetColor(PixelWand *wand,const char *color)
1003 <p>A description of each parameter follows:</p>
1006 <p>the pixel wand.</p>
1009 <p>the pixel wand color.</p>
1012 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorCount">PixelSetColorCount</a></h2>
1013 <div class="doc-section">
1015 <p>PixelSetColorCount() sets the color count of the pixel wand.</p>
1017 <p>The format of the PixelSetColorCount method is:</p>
1020 void PixelSetColorCount(PixelWand *wand,const size_t count)
1023 <p>A description of each parameter follows:</p>
1026 <p>the pixel wand.</p>
1029 <p>the number of this particular color.</p>
1032 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetColorFromWand">PixelSetColorFromWand</a></h2>
1033 <div class="doc-section">
1035 <p>PixelSetColorFromWand() sets the color of the pixel wand.</p>
1037 <p>The format of the PixelSetColorFromWand method is:</p>
1040 PixelSetColorFromWand(PixelWand *wand,const PixelWand *color)
1043 <p>A description of each parameter follows:</p>
1046 <p>the pixel wand.</p>
1049 <p>set the pixel wand color here.</p>
1052 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyan">PixelSetCyan</a></h2>
1053 <div class="doc-section">
1055 <p>PixelSetCyan() sets the normalized cyan color of the pixel wand.</p>
1057 <p>The format of the PixelSetCyan method is:</p>
1060 void PixelSetCyan(PixelWand *wand,const double cyan)
1063 <p>A description of each parameter follows:</p>
1066 <p>the pixel wand.</p>
1069 <p>the cyan color.</p>
1072 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetCyanQuantum">PixelSetCyanQuantum</a></h2>
1073 <div class="doc-section">
1075 <p>PixelSetCyanQuantum() sets the cyan color of the pixel wand.</p>
1077 <p>The format of the PixelSetCyanQuantum method is:</p>
1080 void PixelSetCyanQuantum(PixelWand *wand,const Quantum cyan)
1083 <p>A description of each parameter follows:</p>
1086 <p>the pixel wand.</p>
1089 <p>the cyan color.</p>
1092 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetFuzz">PixelSetFuzz</a></h2>
1093 <div class="doc-section">
1095 <p>PixelSetFuzz() sets the fuzz value of the pixel wand.</p>
1097 <p>The format of the PixelSetFuzz method is:</p>
1100 void PixelSetFuzz(PixelWand *wand,const double fuzz)
1103 <p>A description of each parameter follows:</p>
1106 <p>the pixel wand.</p>
1109 <p>the fuzz value.</p>
1112 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreen">PixelSetGreen</a></h2>
1113 <div class="doc-section">
1115 <p>PixelSetGreen() sets the normalized green color of the pixel wand.</p>
1117 <p>The format of the PixelSetGreen method is:</p>
1120 void PixelSetGreen(PixelWand *wand,const double green)
1123 <p>A description of each parameter follows:</p>
1126 <p>the pixel wand.</p>
1129 <p>the green color.</p>
1132 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetGreenQuantum">PixelSetGreenQuantum</a></h2>
1133 <div class="doc-section">
1135 <p>PixelSetGreenQuantum() sets the green color of the pixel wand.</p>
1137 <p>The format of the PixelSetGreenQuantum method is:</p>
1140 void PixelSetGreenQuantum(PixelWand *wand,const Quantum green)
1143 <p>A description of each parameter follows:</p>
1146 <p>the pixel wand.</p>
1149 <p>the green color.</p>
1152 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetHSL">PixelSetHSL</a></h2>
1153 <div class="doc-section">
1155 <p>PixelSetHSL() sets the normalized HSL color of the pixel wand.</p>
1157 <p>The format of the PixelSetHSL method is:</p>
1160 void PixelSetHSL(PixelWand *wand,const double hue,
1161 const double saturation,const double lightness)
1164 <p>A description of each parameter follows:</p>
1167 <p>the pixel wand.</p>
1169 <h5>hue,saturation,lightness</h5>
1170 <p>Return the pixel hue, saturation, and brightness.</p>
1173 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetIndex">PixelSetIndex</a></h2>
1174 <div class="doc-section">
1176 <p>PixelSetIndex() sets the colormap index of the pixel wand.</p>
1178 <p>The format of the PixelSetIndex method is:</p>
1181 void PixelSetIndex(PixelWand *wand,const IndexPacket index)
1184 <p>A description of each parameter follows:</p>
1187 <p>the pixel wand.</p>
1190 <p>the colormap index.</p>
1193 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagenta">PixelSetMagenta</a></h2>
1194 <div class="doc-section">
1196 <p>PixelSetMagenta() sets the normalized magenta color of the pixel wand.</p>
1198 <p>The format of the PixelSetMagenta method is:</p>
1201 void PixelSetMagenta(PixelWand *wand,const double magenta)
1204 <p>A description of each parameter follows:</p>
1207 <p>the pixel wand.</p>
1210 <p>the magenta color.</p>
1213 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagentaQuantum">PixelSetMagentaQuantum</a></h2>
1214 <div class="doc-section">
1216 <p>PixelSetMagentaQuantum() sets the magenta color of the pixel wand.</p>
1218 <p>The format of the PixelSetMagentaQuantum method is:</p>
1221 void PixelSetMagentaQuantum(PixelWand *wand,
1222 const Quantum magenta)
1225 <p>A description of each parameter follows:</p>
1228 <p>the pixel wand.</p>
1231 <p>the green magenta.</p>
1234 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetMagickColor">PixelSetMagickColor</a></h2>
1235 <div class="doc-section">
1237 <p>PixelSetMagickColor() sets the color of the pixel wand.</p>
1239 <p>The format of the PixelSetMagickColor method is:</p>
1242 PixelSetMagickColor(PixelWand *wand,const MagickPixelPacket *color)
1245 <p>A description of each parameter follows:</p>
1248 <p>the pixel wand.</p>
1251 <p>the pixel wand color.</p>
1254 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacity">PixelSetOpacity</a></h2>
1255 <div class="doc-section">
1257 <p>PixelSetOpacity() sets the normalized opacity color of the pixel wand.</p>
1259 <p>The format of the PixelSetOpacity method is:</p>
1262 void PixelSetOpacity(PixelWand *wand,const double opacity)
1265 <p>A description of each parameter follows:</p>
1268 <p>the pixel wand.</p>
1271 <p>the opacity color.</p>
1274 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetOpacityQuantum">PixelSetOpacityQuantum</a></h2>
1275 <div class="doc-section">
1277 <p>PixelSetOpacityQuantum() sets the opacity color of the pixel wand.</p>
1279 <p>The format of the PixelSetOpacityQuantum method is:</p>
1282 void PixelSetOpacityQuantum(PixelWand *wand,
1283 const Quantum opacity)
1286 <p>A description of each parameter follows:</p>
1289 <p>the pixel wand.</p>
1292 <p>the opacity color.</p>
1295 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetQuantumColor">PixelSetQuantumColor</a></h2>
1296 <div class="doc-section">
1298 <p>PixelSetQuantumColor() sets the color of the pixel wand.</p>
1300 <p>The format of the PixelSetQuantumColor method is:</p>
1303 PixelSetQuantumColor(PixelWand *wand,const PixelPacket *color)
1306 <p>A description of each parameter follows:</p>
1309 <p>the pixel wand.</p>
1312 <p>the pixel wand color.</p>
1315 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRed">PixelSetRed</a></h2>
1316 <div class="doc-section">
1318 <p>PixelSetRed() sets the normalized red color of the pixel wand.</p>
1320 <p>The format of the PixelSetRed method is:</p>
1323 void PixelSetRed(PixelWand *wand,const double red)
1326 <p>A description of each parameter follows:</p>
1329 <p>the pixel wand.</p>
1332 <p>the red color.</p>
1335 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetRedQuantum">PixelSetRedQuantum</a></h2>
1336 <div class="doc-section">
1338 <p>PixelSetRedQuantum() sets the red color of the pixel wand.</p>
1340 <p>The format of the PixelSetRedQuantum method is:</p>
1343 void PixelSetRedQuantum(PixelWand *wand,const Quantum red)
1346 <p>A description of each parameter follows:</p>
1349 <p>the pixel wand.</p>
1352 <p>the red color.</p>
1355 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellow">PixelSetYellow</a></h2>
1356 <div class="doc-section">
1358 <p>PixelSetYellow() sets the normalized yellow color of the pixel wand.</p>
1360 <p>The format of the PixelSetYellow method is:</p>
1363 void PixelSetYellow(PixelWand *wand,const double yellow)
1366 <p>A description of each parameter follows:</p>
1369 <p>the pixel wand.</p>
1372 <p>the yellow color.</p>
1375 <h2><a href="http://www.imagemagick.org/api/MagickWand/pixel-wand_8c.html" id="PixelSetYellowQuantum">PixelSetYellowQuantum</a></h2>
1376 <div class="doc-section">
1378 <p>PixelSetYellowQuantum() sets the yellow color of the pixel wand.</p>
1380 <p>The format of the PixelSetYellowQuantum method is:</p>
1383 void PixelSetYellowQuantum(PixelWand *wand,const Quantum yellow)
1386 <p>A description of each parameter follows:</p>
1389 <p>the pixel wand.</p>
1392 <p>the yellow color.</p>
1398 <div id="linkbar">
\r
1399 <span id="linkbar-west"> </span>
\r
1400 <span id="linkbar-center">
\r
1401 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
1402 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
1404 <span id="linkbar-east"> </span>
\r
1406 <div class="footer">
\r
1407 <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
\r
1408 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
1410 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
1411 <script type="text/javascript">
\r
1412 var _gaq = _gaq || [];
\r
1413 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
1414 _gaq.push(['_trackPageview']);
\r
1417 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
1418 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
1419 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r