blob: 5c97b33f010f26019327cf80705f4e1206647d9e [file] [log] [blame]
cristydcca3fa2010-12-29 21:50:07 +00001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
cristy2bd2a982011-02-15 00:52:58 +00003<html version="-//W3C//DTD XHTML 1.1//EN"
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
cristy3eaa0ef2010-03-06 20:35:26 +00008<head>
cristy751980d2012-06-03 23:18:35 +00009 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
cristy1efc1ab2011-08-01 14:47:02 +000010 <meta name="google-site-verification" content="MxsMq6bdLOx0KSuz1MY6yG9ZTIJ7_7DVRfl5NCAT5Yg"/>
cristyffb69ed2010-12-25 00:06:48 +000011 <title>ImageMagick: MagickWand, C API for ImageMagick: Wand Methods</title>
cristy751980d2012-06-03 23:18:35 +000012 <meta http-equiv="content-language" content="en-US"/>
13 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="reply-to" content="magick-users@imagemagick.org"/>
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 automagically."/>
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:, wmethods, ImageMagick, PerlMagick, image processing, OpenMP, software development library, image, photo, software, Magick++, MagickWand"/>
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-2012 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"/>
cristy29c5c992011-06-25 13:58:49 +000030 <link rel="canonical" href="http://www.imagemagick.org" />
cristy3c98a4f2010-08-13 20:09:41 +000031 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
cristyeed6cb62012-01-28 19:38:34 +000032 <!-- Add jQuery library -->
33 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
34
35 <!-- Optionaly include easing and/or mousewheel plugins -->
36 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/jquery.easing-1.3.pack.js"></script>
37 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/jquery.mousewheel-3.0.6.pack.js"></script>
38
39 <!-- Add fancyBox -->
cristy751980d2012-06-03 23:18:35 +000040 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/jquery.fancybox.css?v=2.0.4" type="text/css" media="screen" />
41 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/jquery.fancybox.pack.js?v=2.0.4"></script>
cristyeed6cb62012-01-28 19:38:34 +000042
43 <!-- Optionaly include button and/or thumbnail helpers -->
cristy751980d2012-06-03 23:18:35 +000044 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/helpers/jquery.fancybox-buttons.css?v=2.0.4" type="text/css" media="screen" />
45 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/helpers/jquery.fancybox-buttons.js?v=2.0.4"></script>
cristyeed6cb62012-01-28 19:38:34 +000046
cristy751980d2012-06-03 23:18:35 +000047 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/helpers/jquery.fancybox-thumbs.css?v=2.0.4" type="text/css" media="screen" />
48 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/helpers/jquery.fancybox-thumbs.js?v=2.0.4"></script>
cristyeed6cb62012-01-28 19:38:34 +000049 <script type="text/javascript">
50 $(document).ready(function() {
51 $(".fancybox").fancybox();
52 });
53 </script>
54 <!-- ImageMagick style -->
cristy7a40ba82011-01-08 20:31:18 +000055 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
cristy3c98a4f2010-08-13 20:09:41 +000056 <style type="text/css" media="all">
cristy751980d2012-06-03 23:18:35 +000057 @import url("../../../../../../../../../../../../../../../../www/magick.css");
cristy3c98a4f2010-08-13 20:09:41 +000058 </style>
cristy3eaa0ef2010-03-06 20:35:26 +000059</head>
60
61<body id="www-imagemagick-org">
62<div class="titlebar">
cristyb52981c2011-03-19 17:09:31 +000063<div style="margin: 17px auto; float: left;">
64 <script type="text/javascript">
65 <!--
66 google_ad_client = "pub-3129977114552745";
67 google_ad_slot = "5439289906";
68 google_ad_width = 728;
69 google_ad_height = 90;
70 //-->
71 </script>
72 <script type="text/javascript"
73 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
74 </script>
75</div>
cristy751980d2012-06-03 23:18:35 +000076<a href="../../../../../../../../../../../../../../../../discourse-server">
77 <img src="../../../../../../../../../../../../../../../../images/logo.jpg"
cristyaf8d6652011-02-04 21:57:45 +000078 alt="ImageMagick Logo"
cristy178edaf2011-01-23 03:42:39 +000079 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
cristy751980d2012-06-03 23:18:35 +000080<a href="../../../../../../../../../../../../../../../../index.html">
81 <img src="../../../../../../../../../../../../../../../../images/sprite.jpg"
cristyaf8d6652011-02-04 21:57:45 +000082 alt="ImageMagick Sprite"
cristy3eaa0ef2010-03-06 20:35:26 +000083 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
84</div>
85
cristyce69bb02010-07-27 19:49:46 +000086<div class="westbar">
cristy3eaa0ef2010-03-06 20:35:26 +000087
cristy3ed852e2009-09-05 21:47:34 +000088<div class="menu">
cristy751980d2012-06-03 23:18:35 +000089 <a title="About ImageMagick" href="../../../../../../../../../../../../../../../../index.html">About ImageMagick</a>
cristy3ed852e2009-09-05 21:47:34 +000090</div>
cristy3ed852e2009-09-05 21:47:34 +000091<div class="menu">
cristy751980d2012-06-03 23:18:35 +000092 <a title="Binary Releases" href="../../../../../../../../../../../../../../../../www/binary-releases.html">Binary Releases</a>
cristybb503372010-05-27 20:51:26 +000093</div>
94<div class="sub">
cristy751980d2012-06-03 23:18:35 +000095 <a title="Binary Release: Unix" href="../../../../../../../../../../../../../../../../www/binary-releases.html#unix">Unix</a>
cristybb503372010-05-27 20:51:26 +000096</div>
97<div class="sub">
cristy751980d2012-06-03 23:18:35 +000098 <a title="Binary Release: MacOS X" href="../../../../../../../../../../../../../../../../www/binary-releases.html#macosx">Mac OS X</a>
cristybb503372010-05-27 20:51:26 +000099</div>
100<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000101 <a title="Binary Release: iOS" href="../../../../../../../../../../../../../../../../www/binary-releases.html#iOS">iOS</a>
cristyda16f162011-02-19 23:52:17 +0000102</div>
103<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000104 <a title="Binary Release: Windows" href="../../../../../../../../../../../../../../../../www/binary-releases.html#windows">Windows</a>
cristybb503372010-05-27 20:51:26 +0000105</div>
106<div class="sep"></div>
107<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000108 <a title="Command-line Tools" href="../../../../../../../../../../../../../../../../www/command-line-tools.html">Command-line Tools</a>
cristy3ed852e2009-09-05 21:47:34 +0000109</div>
110<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000111 <a title="Command-line Tools: Processing" href="../../../../../../../../../../../../../../../../www/command-line-processing.html">Processing</a>
cristy3ed852e2009-09-05 21:47:34 +0000112</div>
113<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000114 <a title="Command-line Tools: Options" href="../../../../../../../../../../../../../../../../www/command-line-options.html">Options</a>
cristy3ed852e2009-09-05 21:47:34 +0000115</div>
116<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000117 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
cristy3ed852e2009-09-05 21:47:34 +0000118</div>
119<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000120 <a title="Program Interfaces" href="../../../../../../../../../../../../../../../../www/api.html">Program Interfaces</a>
cristy3ed852e2009-09-05 21:47:34 +0000121</div>
122<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000123 <a title="Program Interface: MagickWand" href="../../../../../../../../../../../../../../../../www/magick-wand.html">MagickWand</a>
cristy3ed852e2009-09-05 21:47:34 +0000124</div>
125<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000126 <a title="Program Interface: MagickCore" href="../../../../../../../../../../../../../../../../www/magick-core.html">MagickCore</a>
cristy3ed852e2009-09-05 21:47:34 +0000127</div>
128<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000129 <a title="Program Interface: PerlMagick" href="../../../../../../../../../../../../../../../../www/perl-magick.html">PerlMagick</a>
cristy3ed852e2009-09-05 21:47:34 +0000130</div>
131<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000132 <a title="Program Interface: Magick++" href="../../../../../../../../../../../../../../../../www/magick++.html">Magick++</a>
cristy3ed852e2009-09-05 21:47:34 +0000133</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000134<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000135<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000136 <a title="Install from Source" href="../../../../../../../../../../../../../../../../www/install-source.html">Install from Source</a>
cristy3ed852e2009-09-05 21:47:34 +0000137</div>
138<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000139 <a title="Install from Source: Unix" href="../../../../../../../../../../../../../../../../www/install-source.html#unix">Unix</a>
cristy3ed852e2009-09-05 21:47:34 +0000140</div>
141<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000142 <a title="Install from Source: Windows" href="../../../../../../../../../../../../../../../../www/install-source.html#windows">Windows</a>
cristy3ed852e2009-09-05 21:47:34 +0000143 </div>
144<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000145 <a title="Resources" href="../../../../../../../../../../../../../../../../www/resources.html">Resources</a>
cristy3ed852e2009-09-05 21:47:34 +0000146</div>
cristybb503372010-05-27 20:51:26 +0000147<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000148 <a title="Architecture" href="../../../../../../../../../../../../../../../../www/architecture.html">Architecture</a>
cristybb503372010-05-27 20:51:26 +0000149</div>
cristy3ed852e2009-09-05 21:47:34 +0000150<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000151 <a title="Download" href="../../../../../../../../../../../../../../../../www/download.html">Download</a>
cristy3ed852e2009-09-05 21:47:34 +0000152</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000153<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000154<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000155 <a title="Search" href="../../../../../../../../../../../../../../../../www/search.html">Search</a>
cristy3ed852e2009-09-05 21:47:34 +0000156</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000157<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000158<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000159 <a title="Site Map" href="../../../../../../../../../../../../../../../../www/sitemap.html">Site Map</a>
cristy3ed852e2009-09-05 21:47:34 +0000160</div>
161<div class="sub">
cristy751980d2012-06-03 23:18:35 +0000162 <a title="Site Map: Links" href="../../../../../../../../../../../../../../../../www/links.html">Links</a>
cristy3ed852e2009-09-05 21:47:34 +0000163</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000164<div class="sep"></div>
cristyeed6cb62012-01-28 19:38:34 +0000165<div class="menu">
cristy751980d2012-06-03 23:18:35 +0000166 <a rel="follow" title="Sponsors" href="../../../../../../../../../../../../../../../../www/sponsors.html">Sponsors:</a>
cristy3ed852e2009-09-05 21:47:34 +0000167
cristy751980d2012-06-03 23:18:35 +0000168 <a href="http://www.networkredux.com"> <img src="../../../../../../../../../../../../../../../../images/networkredux.png" width="140" height="31" alt="[sponsor]" style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a>
169 <a href="http://www.dinodirect.com/ipads-tablets/"> <img src="../../../../../../../../../../../../../../../../images/dino-direct.jpg" width="140" height="90" alt="[sponsor]" style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a><!-- 201208010120 mickey@163... -->
cristy3ed852e2009-09-05 21:47:34 +0000170<div class="sponsbox">
cristyeed6cb62012-01-28 19:38:34 +0000171<div class="sponsor">
cristy751980d2012-06-03 23:18:35 +0000172 <a rel="follow" title="Sponsor: The Fastest &amp; Easiest Way to Find Images" href="http://www.graphicsfactory.com">The Fastest &amp; Easiest Way to Find Images</a><!-- 201210010270 graphicsfac... -->
cristy81492d62011-06-07 16:41:42 +0000173</div>
cristyeed6cb62012-01-28 19:38:34 +0000174<div class="sponsor">
cristy751980d2012-06-03 23:18:35 +0000175 <a rel="follow" title="Sponsor: VPS" href="http://www.interdominios.com/vps">VPS</a><!-- 201209010090 barsh@inter... -->
cristy1efc1ab2011-08-01 14:47:02 +0000176</div>
cristyeed6cb62012-01-28 19:38:34 +0000177<div class="sponsor">
cristy751980d2012-06-03 23:18:35 +0000178 <a rel="follow" title="Werbebanner Werbeplane" href="http://www.allesbanner.de">Werbebanner Werbeplane</a><!-- 201212010450 info@druck... -->
179</div>
180<div class="sponsor">
181 <a rel="follow" title="Entertainment News &amp; Photos" href="http://www.zimbio.com">Entertainment News &amp; Photos</a><!-- 201211010540 bd@zimb... -->
182</div>
183<div class="sponsor">
184 <a rel="follow" title="Sponsor: LED24" href="http://led24.de/">LED24</a><!-- 201207010270 info@led24... -->
185</div>
186<div class="sponsor">
187 <a rel="follow" title="Sponsor: Best Website Hosting" href="http://www.top-cheap-web-hosting.com">Best Website Hosting</a><!-- 201304010090 eunge.liu-->
188</div>
189<div class="sponsor">
190 <a rel="follow" title="Android Tablet" href="http://www.dinodirect.com/ipads-tablets/">Android Tablet</a><!-- 201208010120 mickey@163... -->
cristy84134182011-06-15 22:59:00 +0000191</div>
cristyeed6cb62012-01-28 19:38:34 +0000192<div class="sponsor">
193 <a rel="follow" title="Sponsor: Web Site Hosting" href="http://webhostinggeeks.com">Web Site Hosting</a><!-- 201302010900 funds@enmob... -->
cristy81492d62011-06-07 16:41:42 +0000194</div>
cristyeed6cb62012-01-28 19:38:34 +0000195<div class="sponsor">
cristyeed6cb62012-01-28 19:38:34 +0000196 <a rel="follow" title="Sponsor: Premium Quality Stock Photos" href="http://www.f1online.pro/en/">Premium Quality Stock Photos</a><!-- 2012080100540 ... -->
197</div>
198<div class="sponsor">
cristyeed6cb62012-01-28 19:38:34 +0000199 <a rel="follow" title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 2012070100250 ... -->
200</div>
201<div class="sponsor">
202 <a rel="follow" title="Sponsor: Managed Server" href="http://www.robhost.de">Managed Server</a><!-- 201210010720 klikics... -->
203</div>
204<div class="sponsor">
cristy10549a12011-05-15 19:04:46 +0000205 <a rel="follow" title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
cristy4c54bbb2011-03-17 13:53:13 +0000206</div>
cristy751980d2012-06-03 23:18:35 +0000207<div class="sponsor">
208 <a rel="follow" title="Sponsor: Kaffeemaschinen reparatur" href="http://www.kaffeemaschinen-reparatur.de">Kaffeemaschinen reparatur</a><!-- 2012080100030 Temurbas atlas-multimedia-->
cristy4bf6e232011-05-21 01:43:33 +0000209</div>
cristyeed6cb62012-01-28 19:38:34 +0000210<div class="sponsor">
cristy751980d2012-06-03 23:18:35 +0000211 <a rel="follow" title="Sponsor: Fototapete - Tapetendruck" href="http://www.druck-expert.com/Fototapete-Tapetendruck,category,8830.html">Fototapete - Tapetendruck</a><!-- 2012100100155 info@druck-->
cristyec6b4752011-01-08 03:16:23 +0000212</div>
cristy96e13132010-06-07 14:55:44 +0000213</div>
cristy3ed852e2009-09-05 21:47:34 +0000214</div>
cristyce69bb02010-07-27 19:49:46 +0000215</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000216
cristyce69bb02010-07-27 19:49:46 +0000217<div class="eastbar">
cristy751980d2012-06-03 23:18:35 +0000218 <div class="g-plusone" id="gplusone"></div>
cristyeed6cb62012-01-28 19:38:34 +0000219 <script type="text/javascript">
220 window.___gcfg = {
221 lang: 'en-US'
222 };
223
224 (function() {
cristy751980d2012-06-03 23:18:35 +0000225 var po = document.createElement('script');
226 po.type = 'text/javascript'; po.async = true;
cristyeed6cb62012-01-28 19:38:34 +0000227 po.src = 'https://apis.google.com/js/plusone.js';
cristy751980d2012-06-03 23:18:35 +0000228 var script = document.getElementsByTagName('script')[0];
229 script.parentNode.insertBefore(po, script);
cristyeed6cb62012-01-28 19:38:34 +0000230 })();
cristy751980d2012-06-03 23:18:35 +0000231 var gplusone = document.getElementById("gplusone");
232 gplusone.setAttribute("data-size","medium");
233 gplusone.setAttribute("data-count","false");
cristyeed6cb62012-01-28 19:38:34 +0000234 </script>
cristy29c5c992011-06-25 13:58:49 +0000235</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000236
237<div class="main">
238
cristy20398432011-08-11 01:31:50 +0000239<h1>Module magick-wand Methods</h1>
cristy751980d2012-06-03 23:18:35 +0000240<p class="navigation-index">[<a href="magick-wand.html#ClearMagickWand">ClearMagickWand</a> &bull; <a href="magick-wand.html#CloneMagickWand">CloneMagickWand</a> &bull; <a href="magick-wand.html#DestroyMagickWand">DestroyMagickWand</a> &bull; <a href="magick-wand.html#IsMagickWand">IsMagickWand</a> &bull; <a href="magick-wand.html#MagickClearException">MagickClearException</a> &bull; <a href="magick-wand.html#MagickGetException">MagickGetException</a> &bull; <a href="magick-wand.html#MagickGetExceptionType">MagickGetExceptionType</a> &bull; <a href="magick-wand.html#MagickGetIteratorIndex">MagickGetIteratorIndex</a> &bull; <a href="magick-wand.html#MagickQueryConfigureOption">MagickQueryConfigureOption</a> &bull; <a href="magick-wand.html#MagickQueryConfigureOptions">MagickQueryConfigureOptions</a> &bull; <a href="magick-wand.html#MagickQueryFontMetrics">MagickQueryFontMetrics</a> &bull; <a href="magick-wand.html#MagickQueryMultilineFontMetrics">MagickQueryMultilineFontMetrics</a> &bull; <a href="magick-wand.html#MagickQueryFonts">MagickQueryFonts</a> &bull; <a href="magick-wand.html#MagickQueryFonts">MagickQueryFonts</a> &bull; <a href="magick-wand.html#MagickRelinquishMemory">MagickRelinquishMemory</a> &bull; <a href="magick-wand.html#MagickResetIterator">MagickResetIterator</a> &bull; <a href="magick-wand.html#MagickSetFirstIterator">MagickSetFirstIterator</a> &bull; <a href="magick-wand.html#MagickSetIteratorIndex">MagickSetIteratorIndex</a> &bull; <a href="magick-wand.html#MagickSetLastIterator">MagickSetLastIterator</a> &bull; <a href="magick-wand.html#MagickWandGenesis">MagickWandGenesis</a> &bull; <a href="magick-wand.html#MagickWandTerminus">MagickWandTerminus</a> &bull; <a href="magick-wand.html#NewMagickWand">NewMagickWand</a> &bull; <a href="magick-wand.html#NewMagickWandFromImage">NewMagickWandFromImage</a>]</p>
cristy6f77f692011-02-15 15:31:39 +0000241
cristy20398432011-08-11 01:31:50 +0000242<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="ClearMagickWand">ClearMagickWand</a></h2>
243<div class="doc-section">
244
cristy751980d2012-06-03 23:18:35 +0000245<p>ClearMagickWand() clears resources associated with the wand, leaving the wand blank, and ready to be used for a new set of images.</p>
cristy20398432011-08-11 01:31:50 +0000246
247<p>The format of the ClearMagickWand method is:</p>
248
249<pre class="code">
250 void ClearMagickWand(MagickWand *wand)
251</pre>
252
253<p>A description of each parameter follows:</p>
254
255<h5>wand</h5>
256<p>the magick wand.</p>
257
258 </div>
259<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="CloneMagickWand">CloneMagickWand</a></h2>
260<div class="doc-section">
261
262<p>CloneMagickWand() makes an exact copy of the specified wand.</p>
263
264<p>The format of the CloneMagickWand method is:</p>
265
266<pre class="code">
267 MagickWand *CloneMagickWand(const MagickWand *wand)
268</pre>
269
270<p>A description of each parameter follows:</p>
271
272<h5>wand</h5>
273<p>the magick wand.</p>
274
275 </div>
276<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="DestroyMagickWand">DestroyMagickWand</a></h2>
277<div class="doc-section">
278
279<p>DestroyMagickWand() deallocates memory associated with an MagickWand.</p>
280
281<p>The format of the DestroyMagickWand method is:</p>
282
283<pre class="code">
284 MagickWand *DestroyMagickWand(MagickWand *wand)
285</pre>
286
287<p>A description of each parameter follows:</p>
288
289<h5>wand</h5>
290<p>the magick wand.</p>
291
292 </div>
293<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="IsMagickWand">IsMagickWand</a></h2>
294<div class="doc-section">
295
296<p>IsMagickWand() returns MagickTrue if the wand is verified as a magick wand.</p>
297
298<p>The format of the IsMagickWand method is:</p>
299
300<pre class="code">
301 MagickBooleanType IsMagickWand(const MagickWand *wand)
302</pre>
303
304<p>A description of each parameter follows:</p>
305
306<h5>wand</h5>
307<p>the magick wand.</p>
308
309 </div>
310<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickClearException">MagickClearException</a></h2>
311<div class="doc-section">
312
313<p>MagickClearException() clears any exceptions associated with the wand.</p>
314
315<p>The format of the MagickClearException method is:</p>
316
317<pre class="code">
318 MagickBooleanType MagickClearException(MagickWand *wand)
319</pre>
320
321<p>A description of each parameter follows:</p>
322
323<h5>wand</h5>
324<p>the magick wand.</p>
325
326 </div>
327<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickGetException">MagickGetException</a></h2>
328<div class="doc-section">
329
330<p>MagickGetException() returns the severity, reason, and description of any error that occurs when using other methods in this API.</p>
331
332<p>The format of the MagickGetException method is:</p>
333
334<pre class="code">
335 char *MagickGetException(const MagickWand *wand,ExceptionType *severity)
336</pre>
337
338<p>A description of each parameter follows:</p>
339
340<h5>wand</h5>
341<p>the magick wand.</p>
342
343<h5>severity</h5>
344<p>the severity of the error is returned here.</p>
345
346 </div>
347<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickGetExceptionType">MagickGetExceptionType</a></h2>
348<div class="doc-section">
349
350<p>MagickGetExceptionType() returns the exception type associated with the wand. If no exception has occurred, UndefinedExceptionType is returned.</p>
351
352<p>The format of the MagickGetExceptionType method is:</p>
353
354<pre class="code">
355 ExceptionType MagickGetExceptionType(const MagickWand *wand)
356</pre>
357
358<p>A description of each parameter follows:</p>
359
360<h5>wand</h5>
361<p>the magick wand.</p>
362
363 </div>
364<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickGetIteratorIndex">MagickGetIteratorIndex</a></h2>
365<div class="doc-section">
366
367<p>MagickGetIteratorIndex() returns the position of the iterator in the image list.</p>
368
369<p>The format of the MagickGetIteratorIndex method is:</p>
370
371<pre class="code">
372 ssize_t MagickGetIteratorIndex(MagickWand *wand)
373</pre>
374
375<p>A description of each parameter follows:</p>
376
377<h5>wand</h5>
378<p>the magick wand.</p>
379
380 </div>
381<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickQueryConfigureOption">MagickQueryConfigureOption</a></h2>
382<div class="doc-section">
383
384<p>MagickQueryConfigureOption() returns the value associated with the specified configure option.</p>
385
386<p>The format of the MagickQueryConfigureOption function is:</p>
387
388<pre class="text">
389 char *MagickQueryConfigureOption(const char *option)
390</pre>
391
392<p>A description of each parameter follows:</p>
393
394<h5>option</h5>
395<p>the option name.</p>
396
397 </div>
398<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickQueryConfigureOptions">MagickQueryConfigureOptions</a></h2>
399<div class="doc-section">
400
401<p>MagickQueryConfigureOptions() returns any configure options that match the specified pattern (e.g. "*" for all). Options include NAME, VERSION, LIB_VERSION, etc.</p>
402
403<p>The format of the MagickQueryConfigureOptions function is:</p>
404
405<pre class="text">
406 char **MagickQueryConfigureOptions(const char *pattern,
407 size_t *number_options)
408</pre>
409
410<p>A description of each parameter follows:</p>
411
412<h5>pattern</h5>
413<p>Specifies a pointer to a text string containing a pattern.</p>
414
415<h5>number_options</h5>
416<p>Returns the number of configure options in the list.</p>
417
418
419 </div>
420<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickQueryFontMetrics">MagickQueryFontMetrics</a></h2>
421<div class="doc-section">
422
423<p>MagickQueryFontMetrics() returns a 13 element array representing the following font metrics:</p>
424
425<pre class="text">
426 Element Description
427 -------------------------------------------------
428 0 character width
429 1 character height
430 2 ascender
431 3 descender
432 4 text width
433 5 text height
434 6 maximum horizontal advance
435 7 bounding box: x1
436 8 bounding box: y1
437 9 bounding box: x2
438 10 bounding box: y2
439 11 origin: x
440 12 origin: y
441</pre>
442
443<p>The format of the MagickQueryFontMetrics method is:</p>
444
445<pre class="code">
446 double *MagickQueryFontMetrics(MagickWand *wand,
447 const DrawingWand *drawing_wand,const char *text)
448</pre>
449
450<p>A description of each parameter follows:</p>
451
452<h5>wand</h5>
453<p>the Magick wand.</p>
454
455<h5>drawing_wand</h5>
456<p>the drawing wand.</p>
457
458<h5>text</h5>
459<p>the text.</p>
460
461 </div>
462<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickQueryMultilineFontMetrics">MagickQueryMultilineFontMetrics</a></h2>
463<div class="doc-section">
464
465<p>MagickQueryMultilineFontMetrics() returns a 13 element array representing the following font metrics:</p>
466
467<pre class="text">
468 Element Description
469 -------------------------------------------------
470 0 character width
471 1 character height
472 2 ascender
473 3 descender
474 4 text width
475 5 text height
476 6 maximum horizontal advance
477 7 bounding box: x1
478 8 bounding box: y1
479 9 bounding box: x2
480 10 bounding box: y2
481 11 origin: x
482 12 origin: y
483</pre>
484
485<p>This method is like MagickQueryFontMetrics() but it returns the maximum text width and height for multiple lines of text.</p>
486
487<p>The format of the MagickQueryFontMetrics method is:</p>
488
489<pre class="code">
490 double *MagickQueryMultilineFontMetrics(MagickWand *wand,
491 const DrawingWand *drawing_wand,const char *text)
492</pre>
493
494<p>A description of each parameter follows:</p>
495
496<h5>wand</h5>
497<p>the Magick wand.</p>
498
499<h5>drawing_wand</h5>
500<p>the drawing wand.</p>
501
502<h5>text</h5>
503<p>the text.</p>
504
505 </div>
506<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickQueryFonts">MagickQueryFonts</a></h2>
507<div class="doc-section">
508
509<p>MagickQueryFonts() returns any font that match the specified pattern (e.g. "*" for all).</p>
510
511<p>The format of the MagickQueryFonts function is:</p>
512
513<pre class="text">
514 char **MagickQueryFonts(const char *pattern,size_t *number_fonts)
515</pre>
516
517<p>A description of each parameter follows:</p>
518
519<h5>pattern</h5>
520<p>Specifies a pointer to a text string containing a pattern.</p>
521
522<h5>number_fonts</h5>
523<p>Returns the number of fonts in the list.</p>
524
525
526 </div>
527<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickQueryFonts">MagickQueryFonts</a></h2>
528<div class="doc-section">
529
530<p>MagickQueryFonts() returns any image formats that match the specified pattern (e.g. "*" for all).</p>
531
532<p>The format of the MagickQueryFonts function is:</p>
533
534<pre class="text">
535 char **MagickQueryFonts(const char *pattern,
536 size_t *number_formats)
537</pre>
538
539<p>A description of each parameter follows:</p>
540
541<h5>pattern</h5>
542<p>Specifies a pointer to a text string containing a pattern.</p>
543
544<h5>number_formats</h5>
545<p>This integer returns the number of image formats in the list.</p>
546
547 </div>
548<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickRelinquishMemory">MagickRelinquishMemory</a></h2>
549<div class="doc-section">
550
551<p>MagickRelinquishMemory() relinquishes memory resources returned by such methods as MagickIdentifyImage(), MagickGetException(), etc.</p>
552
553<p>The format of the MagickRelinquishMemory method is:</p>
554
555<pre class="code">
556 void *MagickRelinquishMemory(void *resource)
557</pre>
558
559<p>A description of each parameter follows:</p>
560
561<h5>resource</h5>
562<p>Relinquish the memory associated with this resource.</p>
563
564 </div>
565<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickResetIterator">MagickResetIterator</a></h2>
566<div class="doc-section">
567
cristy751980d2012-06-03 23:18:35 +0000568<p>MagickResetIterator() resets the wand iterator.</p>
569
570<p>It is typically used either before iterating though images, or before calling specific functions such as MagickAppendImages() to append all images together.</p>
571
572<p>Afterward you can use MagickNextImage() to iterate over all the images in a wand container, starting with the first image.</p>
573
574<p>Using this before MagickAddImages() or MagickReadImages() will cause new images to be inserted between the first and second image.</p>
cristy20398432011-08-11 01:31:50 +0000575
576<p>The format of the MagickResetIterator method is:</p>
577
578<pre class="code">
579 void MagickResetIterator(MagickWand *wand)
580</pre>
581
582<p>A description of each parameter follows:</p>
583
584<h5>wand</h5>
585<p>the magick wand.</p>
586
587 </div>
588<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickSetFirstIterator">MagickSetFirstIterator</a></h2>
589<div class="doc-section">
590
591<p>MagickSetFirstIterator() sets the wand iterator to the first image.</p>
592
cristy751980d2012-06-03 23:18:35 +0000593<p>After using any images added to the wand using MagickAddImage() or MagickReadImage() will be prepended before any image in the wand.</p>
594
595<p>Also the current image has been set to the first image (if any) in the Magick Wand. Using MagickNextImage() will then set teh current image to the second image in the list (if present).</p>
596
597<p>This operation is similar to MagickResetIterator() but differs in how MagickAddImage(), MagickReadImage(), and MagickNextImage() behaves afterward.</p>
598
cristy20398432011-08-11 01:31:50 +0000599<p>The format of the MagickSetFirstIterator method is:</p>
600
601<pre class="code">
602 void MagickSetFirstIterator(MagickWand *wand)
603</pre>
604
605<p>A description of each parameter follows:</p>
606
607<h5>wand</h5>
608<p>the magick wand.</p>
609
610 </div>
611<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickSetIteratorIndex">MagickSetIteratorIndex</a></h2>
612<div class="doc-section">
613
cristy751980d2012-06-03 23:18:35 +0000614<p>MagickSetIteratorIndex() set the iterator to the given position in the image list specified with the index parameter. A zero index will set the first image as current, and so on. Negative indexes can be used to specify an image relative to the end of the images in the wand, with -1 being the last image in the wand.</p>
615
616<p>If the index is invalid (range too large for number of images in wand) the function will return MagickFalse, but no 'exception' will be raised, as it is not actually an error. In that case the current image will not change.</p>
617
618<p>After using any images added to the wand using MagickAddImage() or MagickReadImage() will be added after the image indexed, regardless of if a zero (first image in list) or negative index (from end) is used.</p>
619
620<p>Jumping to index 0 is similar to MagickResetIterator() but differs in how MagickNextImage() behaves afterward.</p>
cristy20398432011-08-11 01:31:50 +0000621
622<p>The format of the MagickSetIteratorIndex method is:</p>
623
624<pre class="code">
625 MagickBooleanType MagickSetIteratorIndex(MagickWand *wand,
626 const ssize_t index)
627</pre>
628
629<p>A description of each parameter follows:</p>
630
631<h5>wand</h5>
632<p>the magick wand.</p>
633
634<h5>index</h5>
635<p>the scene number.</p>
636
637 </div>
638<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickSetLastIterator">MagickSetLastIterator</a></h2>
639<div class="doc-section">
640
641<p>MagickSetLastIterator() sets the wand iterator to the last image.</p>
642
cristy751980d2012-06-03 23:18:35 +0000643<p>The last image is actually the current image, and the next use of MagickPreviousImage() will not change this allowing this function to be used to iterate over the images in the reverse direction. In this sense it is more like MagickResetIterator() than MagickSetFirstIterator().</p>
644
645<p>Typically this function is used before MagickAddImage(), MagickReadImage() functions to ensure new images are appended to the very end of wand's image list.</p>
646
cristy20398432011-08-11 01:31:50 +0000647<p>The format of the MagickSetLastIterator method is:</p>
648
649<pre class="code">
650 void MagickSetLastIterator(MagickWand *wand)
651</pre>
652
653<p>A description of each parameter follows:</p>
654
655<h5>wand</h5>
656<p>the magick wand.</p>
657
658 </div>
659<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickWandGenesis">MagickWandGenesis</a></h2>
660<div class="doc-section">
661
662<p>MagickWandGenesis() initializes the MagickWand environment.</p>
663
664<p>The format of the MagickWandGenesis method is:</p>
665
666<pre class="code">
667 void MagickWandGenesis(void)
668</pre>
669
670 </div>
671<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="MagickWandTerminus">MagickWandTerminus</a></h2>
672<div class="doc-section">
673
674<p>MagickWandTerminus() terminates the MagickWand environment.</p>
675
676<p>The format of the MaickWandTerminus method is:</p>
677
678<pre class="code">
679 void MagickWandTerminus(void)
680</pre>
681
682 </div>
683<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="NewMagickWand">NewMagickWand</a></h2>
684<div class="doc-section">
685
686<p>NewMagickWand() returns a wand required for all other methods in the API. A fatal exception is thrown if there is not enough memory to allocate the wand. Use DestroyMagickWand() to dispose of the wand when it is no longer needed.</p>
687
688<p>The format of the NewMagickWand method is:</p>
689
690<pre class="code">
691 MagickWand *NewMagickWand(void)
692</pre>
693
694 </div>
695<h2><a href="http://www.imagemagick.org/api/MagickWand/magick-wand_8c.html" id="NewMagickWandFromImage">NewMagickWandFromImage</a></h2>
696<div class="doc-section">
697
698<p>NewMagickWandFromImage() returns a wand with an image.</p>
699
700<p>The format of the NewMagickWandFromImage method is:</p>
701
702<pre class="code">
703 MagickWand *NewMagickWandFromImage(const Image *image)
704</pre>
705
706<p>A description of each parameter follows:</p>
707
708<h5>image</h5>
709<p>the image.</p>
710
711 </div>
cristy3eaa0ef2010-03-06 20:35:26 +0000712
713</div>
714
715<div id="linkbar">
cristyce69bb02010-07-27 19:49:46 +0000716 <span id="linkbar-west">&nbsp;</span>
cristy3eaa0ef2010-03-06 20:35:26 +0000717 <span id="linkbar-center">
cristy751980d2012-06-03 23:18:35 +0000718 <a href="../../../../../../../../../../../../../../../../discourse-server">Discourse Server</a> &bull;
cristya8902942010-07-30 00:49:52 +0000719 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy3eaa0ef2010-03-06 20:35:26 +0000720 </span>
721 <span id="linkbar-east">&nbsp;</span>
722 </div>
723 <div class="footer">
cristy751980d2012-06-03 23:18:35 +0000724 <span id="footer-west">&copy; 1999-2012 ImageMagick Studio LLC</span>
725 <span id="footer-east"> <a href="http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
cristy3eaa0ef2010-03-06 20:35:26 +0000726 </div>
727 <div style="clear: both; margin: 0; width: 100%; "></div>
cristya8902942010-07-30 00:49:52 +0000728 <script type="text/javascript">
729 var _gaq = _gaq || [];
730 _gaq.push(['_setAccount', 'UA-17690367-1']);
731 _gaq.push(['_trackPageview']);
732
733 (function() {
734 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
735 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
736 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
737 })();
738 </script>
cristy3eaa0ef2010-03-06 20:35:26 +0000739</body>
740</html>