blob: d35a04f11e115fb2f94b20830b991111503eb577 [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">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">
cristy3eaa0ef2010-03-06 20:35:26 +00004<head>
cristy3c98a4f2010-08-13 20:09:41 +00005 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
cristyffb69ed2010-12-25 00:06:48 +00007 <title>ImageMagick: MagickCore, C API for ImageMagick: Add a Special Effect</title>
cristy3ed852e2009-09-05 21:47:34 +00008 <meta http-equiv="Content-Language" content="en-US"/>
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
10 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
cristy3c98a4f2010-08-13 20:09:41 +000011 <meta name="Application-name" content="ImageMagick"/>
cristydcca3fa2010-12-29 21:50:07 +000012 <meta name="Description" content="ImageMagick is a software suite to create, edit, compose, or convert bitmap images in a variety of formats. Use ImageMagick to scale, rotate, shear, distort and transform images."/>
cristy3c98a4f2010-08-13 20:09:41 +000013 <meta name="Application-url" content="http://www.imagemagick.org"/>
cristy3ed852e2009-09-05 21:47:34 +000014 <meta name="Generator" content="PHP"/>
15 <meta name="Keywords" content="magickcore, c, api, for, imagemagick:, add, a, special, effect, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
cristy3ed852e2009-09-05 21:47:34 +000016 <meta name="Rating" content="GENERAL"/>
17 <meta name="Robots" content="INDEX, FOLLOW"/>
18 <meta name="Generator" content="ImageMagick Studio LLC"/>
19 <meta name="Author" content="ImageMagick Studio LLC"/>
20 <meta name="Revisit-after" content="2 DAYS"/>
21 <meta name="Resource-type" content="document"/>
cristy4103d562010-12-10 01:38:54 +000022 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
cristy3ed852e2009-09-05 21:47:34 +000023 <meta name="Distribution" content="Global"/>
cristydcca3fa2010-12-29 21:50:07 +000024 <link rel="icon" href="../../images/wand.png"/>
cristy3c98a4f2010-08-13 20:09:41 +000025 <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
26 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
cristy7a40ba82011-01-08 20:31:18 +000027 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
cristy3c98a4f2010-08-13 20:09:41 +000028 <style type="text/css" media="all">
29 @import url("../../www/magick.css");
30 </style>
cristydcca3fa2010-12-29 21:50:07 +000031 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
cristy361f4662010-12-31 23:02:52 +000032 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
33 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
34 <script type="text/javascript">
35 $(document).ready(function() {
36 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
37 'transitionIn' : 'elastic',
38 'transitionOut' : 'elastic',
39 'overlayShow' : false,
40 'opacity' : true
41 });
42 });
43 </script>
cristy3eaa0ef2010-03-06 20:35:26 +000044</head>
45
46<body id="www-imagemagick-org">
47<div class="titlebar">
48<a href="../../index.html">
49 <img src="../../images/script.png" alt="[ImageMagick]"
50 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
51<a href="http://www.networkredux.com">
52 <img src="../../images/networkredux.png" alt="[sponsor]"
cristy52923442011-01-15 22:54:31 +000053 style="margin-top: 42px; border: 0px; float: left;" /></a>
cristy3eaa0ef2010-03-06 20:35:26 +000054<a href="http://www.imagemagick.org/discourse-server/">
55 <img src="../../images/logo.jpg" alt=""
56 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
57<a href="../../index.html">
58 <img src="../../images/sprite.jpg" alt=""
59 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
60</div>
61
cristyce69bb02010-07-27 19:49:46 +000062<div class="westbar">
cristy3eaa0ef2010-03-06 20:35:26 +000063
cristy3ed852e2009-09-05 21:47:34 +000064<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000065 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
cristy3ed852e2009-09-05 21:47:34 +000066</div>
cristy3eaa0ef2010-03-06 20:35:26 +000067<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +000068<div class="menu">
cristybb503372010-05-27 20:51:26 +000069 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
70</div>
71<div class="sub">
72 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
73</div>
74<div class="sub">
75 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
76</div>
77<div class="sub">
78 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
79</div>
80<div class="sep"></div>
81<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000082 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
cristy3ed852e2009-09-05 21:47:34 +000083</div>
84<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000085 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
cristy3ed852e2009-09-05 21:47:34 +000086</div>
87<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000088 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
cristy3ed852e2009-09-05 21:47:34 +000089</div>
90<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000091 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
cristy3ed852e2009-09-05 21:47:34 +000092</div>
93<div class="menu">
cristy83a272e2010-05-07 20:40:35 +000094 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
cristy3ed852e2009-09-05 21:47:34 +000095</div>
96<div class="sub">
cristy83a272e2010-05-07 20:40:35 +000097 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
cristy3ed852e2009-09-05 21:47:34 +000098</div>
99<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000100 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
cristy3ed852e2009-09-05 21:47:34 +0000101</div>
102<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000103 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
cristy3ed852e2009-09-05 21:47:34 +0000104</div>
105<div class="sub">
cristydcca3fa2010-12-29 21:50:07 +0000106 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
cristy3ed852e2009-09-05 21:47:34 +0000107</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000108<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000109<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000110 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
cristy3ed852e2009-09-05 21:47:34 +0000111</div>
112<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000113 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
cristy3ed852e2009-09-05 21:47:34 +0000114</div>
115<div class="sub">
cristy83a272e2010-05-07 20:40:35 +0000116 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
cristy3ed852e2009-09-05 21:47:34 +0000117 </div>
118<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000119 <a title="Resources" href="../../www/resources.html">Resources</a>
cristy3ed852e2009-09-05 21:47:34 +0000120</div>
cristybb503372010-05-27 20:51:26 +0000121<div class="menu">
122 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
123</div>
cristy3ed852e2009-09-05 21:47:34 +0000124<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000125 <a title="Download" href="../../www/download.html">Download</a>
cristy3ed852e2009-09-05 21:47:34 +0000126</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000127<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000128<div class="menu">
cristy52923442011-01-15 22:54:31 +0000129 <a title="Search" href="../../www/search.html">Search</a>
cristy3ed852e2009-09-05 21:47:34 +0000130</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000131<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000132<div class="menu">
cristyffb69ed2010-12-25 00:06:48 +0000133 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
cristy3ed852e2009-09-05 21:47:34 +0000134</div>
135<div class="sub">
cristyffb69ed2010-12-25 00:06:48 +0000136 <a title="Site Map: Links" href="../../www/links.html">Links</a>
cristy3ed852e2009-09-05 21:47:34 +0000137</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000138<div class="sep"></div>
cristy3ed852e2009-09-05 21:47:34 +0000139<div class="menu">
cristy83a272e2010-05-07 20:40:35 +0000140 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
cristy3ed852e2009-09-05 21:47:34 +0000141
142<div class="sponsbox">
cristyec6b4752011-01-08 03:16:23 +0000143<div class="sponsor">
cristy52923442011-01-15 22:54:31 +0000144 <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
cristy7d52cd62010-10-01 17:26:59 +0000145</div>
146<div class="sponsor">
147 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
cristy73fd1cd2010-09-12 19:14:25 +0000148</div>
149<div class="sponsor">
cristyc5baf4f2010-08-31 15:05:33 +0000150 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
151</div>
152<div class="sponsor">
cristy851dbce2010-08-06 21:40:00 +0000153 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
154</div>
cristyec6b4752011-01-08 03:16:23 +0000155<div class="sponsor">
cristy52923442011-01-15 22:54:31 +0000156 <a title="Sponsor: Free Catalogs" href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 20120801000600 -->
cristyec6b4752011-01-08 03:16:23 +0000157</div>
cristy3ed852e2009-09-05 21:47:34 +0000158</div>
159</div>
cristyce69bb02010-07-27 19:49:46 +0000160</div>
cristy3eaa0ef2010-03-06 20:35:26 +0000161
cristyce69bb02010-07-27 19:49:46 +0000162<div class="eastbar">
163 <script type="text/javascript">
164 <!--
165 google_ad_client = "pub-3129977114552745";
cristyce69bb02010-07-27 19:49:46 +0000166 google_ad_slot = "0574824969";
167 google_ad_width = 160;
168 google_ad_height = 600;
169 //-->
170 </script>
171 <script type="text/javascript"
172 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
173 </script>
cristy3eaa0ef2010-03-06 20:35:26 +0000174</div>
175
176<div class="main">
177
cristy307ba182010-12-25 01:00:34 +0000178<h1>Module fx
179 Methods</h1>
cristy0291e2d2010-04-04 17:50:18 +0000180<p class="navigation-index">[<a href="#AddNoiseImage">AddNoiseImage</a> &bull; <a href="#BlueShiftImage">BlueShiftImage</a> &bull; <a href="#CharcoalImage">CharcoalImage</a> &bull; <a href="#ColorizeImage">ColorizeImage</a> &bull; <a href="#ColorMatrixImage">ColorMatrixImage</a> &bull; <a href="#FxImage">FxImage</a> &bull; <a href="#ImplodeImage">ImplodeImage</a> &bull; <a href="#The MorphImages">The MorphImages</a> &bull; <a href="#PlasmaImage">PlasmaImage</a> &bull; <a href="#PolaroidImage">PolaroidImage</a> &bull; <a href="#MagickSepiaToneImage">MagickSepiaToneImage</a> &bull; <a href="#ShadowImage">ShadowImage</a> &bull; <a href="#SketchImage">SketchImage</a> &bull; <a href="#SolarizeImage">SolarizeImage</a> &bull; <a href="#SteganoImage">SteganoImage</a> &bull; <a href="#StereoAnaglyphImage">StereoAnaglyphImage</a> &bull; <a href="#SwirlImage">SwirlImage</a> &bull; <a href="#TintImage">TintImage</a> &bull; <a href="#VignetteImage">VignetteImage</a> &bull; <a href="#WaveImage">WaveImage</a>]</p>
cristy3ed852e2009-09-05 21:47:34 +0000181
cristy7a40ba82011-01-08 20:31:18 +0000182<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
183_8c.html" id="AddNoiseImage">AddNoiseImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000184<div class="doc-section">
185
cristy7a40ba82011-01-08 20:31:18 +0000186<p>AddNoiseImage() adds random noise to the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000187
188<p>The format of the AddNoiseImage method is:</p>
189
190<pre class="code">
191 Image *AddNoiseImage(const Image *image,const NoiseType noise_type,
192 ExceptionInfo *exception)
193 Image *AddNoiseImageChannel(const Image *image,const ChannelType channel,
194 const NoiseType noise_type,ExceptionInfo *exception)
195</pre>
196
cristy7a40ba82011-01-08 20:31:18 +0000197<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000198
199<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000200<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000201
202<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000203<p>the channel type.</p>
cristy3ed852e2009-09-05 21:47:34 +0000204
205<h5>noise_type</h5>
cristy7a40ba82011-01-08 20:31:18 +0000206<p>The type of noise: Uniform, Gaussian, Multiplicative, Impulse, Laplacian, or Poisson.</p>
cristy3ed852e2009-09-05 21:47:34 +0000207
208<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000209<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000210
211 </div>
cristy7a40ba82011-01-08 20:31:18 +0000212<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
213_8c.html" id="BlueShiftImage">BlueShiftImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000214<div class="doc-section">
215
cristy7a40ba82011-01-08 20:31:18 +0000216<p>BlueShiftImage() mutes the colors of the image to simulate a scene at nighttime in the moonlight.</p>
cristy3ed852e2009-09-05 21:47:34 +0000217
218<p>The format of the BlueShiftImage method is:</p>
219
220<pre class="code">
221 Image *BlueShiftImage(const Image *image,const double factor,
222 ExceptionInfo *exception)
223</pre>
224
cristy7a40ba82011-01-08 20:31:18 +0000225<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000226
227<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000228<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000229
230<h5>factor</h5>
cristy7a40ba82011-01-08 20:31:18 +0000231<p>the shift factor.</p>
cristy3ed852e2009-09-05 21:47:34 +0000232
233<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000234<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000235
236 </div>
cristy7a40ba82011-01-08 20:31:18 +0000237<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
238_8c.html" id="CharcoalImage">CharcoalImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000239<div class="doc-section">
240
cristy7a40ba82011-01-08 20:31:18 +0000241<p>CharcoalImage() creates a new image that is a copy of an existing one with the edge highlighted. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000242
243<p>The format of the CharcoalImage method is:</p>
244
245<pre class="code">
246 Image *CharcoalImage(const Image *image,const double radius,
247 const double sigma,ExceptionInfo *exception)
248</pre>
249
cristy7a40ba82011-01-08 20:31:18 +0000250<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000251
252<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000253<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000254
255<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000256<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000257
258<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000259<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000260
261<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000262<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000263
264 </div>
cristy7a40ba82011-01-08 20:31:18 +0000265<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
266_8c.html" id="ColorizeImage">ColorizeImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000267<div class="doc-section">
268
cristy7a40ba82011-01-08 20:31:18 +0000269<p>ColorizeImage() blends the fill color with each pixel in the image. A percentage blend is specified with opacity. Control the application of different color components by specifying a different percentage for each component (e.g. 90/100/10 is 90 red, 100 green, and 10 blue).</p>
cristy3ed852e2009-09-05 21:47:34 +0000270
271<p>The format of the ColorizeImage method is:</p>
272
273<pre class="code">
274 Image *ColorizeImage(const Image *image,const char *opacity,
275 const PixelPacket colorize,ExceptionInfo *exception)
276</pre>
277
cristy7a40ba82011-01-08 20:31:18 +0000278<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000279
280<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000281<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000282
283<h5>opacity</h5>
cristy7a40ba82011-01-08 20:31:18 +0000284<p>A character string indicating the level of opacity as a percentage.</p>
cristy3ed852e2009-09-05 21:47:34 +0000285
286<h5>colorize</h5>
cristy7a40ba82011-01-08 20:31:18 +0000287<p>A color value.</p>
cristy3ed852e2009-09-05 21:47:34 +0000288
289<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000290<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000291
292 </div>
cristy7a40ba82011-01-08 20:31:18 +0000293<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
294_8c.html" id="ColorMatrixImage">ColorMatrixImage</a></h2>
cristy0291e2d2010-04-04 17:50:18 +0000295<div class="doc-section">
296
cristy7a40ba82011-01-08 20:31:18 +0000297<p>ColorMatrixImage() applies color transformation to an image. This method permits saturation changes, hue rotation, luminance to alpha, and various other effects. Although variable-sized transformation matrices can be used, typically one uses a 5x5 matrix for an RGBA image and a 6x6 for CMYKA (or RGBA with offsets). The matrix is similar to those used by Adobe Flash except offsets are in column 6 rather than 5 (in support of CMYKA images) and offsets are normalized (divide Flash offset by 255).</p>
cristy0291e2d2010-04-04 17:50:18 +0000298
299<p>The format of the ColorMatrixImage method is:</p>
300
301<pre class="code">
302 Image *ColorMatrixImage(const Image *image,
303 const KernelInfo *color_matrix,ExceptionInfo *exception)
304</pre>
305
cristy7a40ba82011-01-08 20:31:18 +0000306<p>A description of each parameter follows:</p>
cristy0291e2d2010-04-04 17:50:18 +0000307
308<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000309<p>the image.</p>
cristy0291e2d2010-04-04 17:50:18 +0000310
311<h5>color_matrix</h5>
cristy7a40ba82011-01-08 20:31:18 +0000312<p>the color matrix.</p>
cristy0291e2d2010-04-04 17:50:18 +0000313
314<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000315<p>return any errors or warnings in this structure.</p>
cristy0291e2d2010-04-04 17:50:18 +0000316
317 </div>
cristy7a40ba82011-01-08 20:31:18 +0000318<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
319_8c.html" id="FxImage">FxImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000320<div class="doc-section">
321
cristy7a40ba82011-01-08 20:31:18 +0000322<p>FxImage() applies a mathematical expression to the specified image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000323
324<p>The format of the FxImage method is:</p>
325
326<pre class="code">
327 Image *FxImage(const Image *image,const char *expression,
328 ExceptionInfo *exception)
329 Image *FxImageChannel(const Image *image,const ChannelType channel,
330 const char *expression,ExceptionInfo *exception)
331</pre>
332
cristy7a40ba82011-01-08 20:31:18 +0000333<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000334
335<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000336<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000337
338<h5>channel</h5>
cristy7a40ba82011-01-08 20:31:18 +0000339<p>the channel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000340
341<h5>expression</h5>
cristy7a40ba82011-01-08 20:31:18 +0000342<p>A mathematical expression.</p>
cristy3ed852e2009-09-05 21:47:34 +0000343
344<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000345<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000346
347 </div>
cristy7a40ba82011-01-08 20:31:18 +0000348<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
349_8c.html" id="ImplodeImage">ImplodeImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000350<div class="doc-section">
351
cristy7a40ba82011-01-08 20:31:18 +0000352<p>ImplodeImage() creates a new image that is a copy of an existing one with the image pixels "implode" by the specified percentage. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000353
354<p>The format of the ImplodeImage method is:</p>
355
356<pre class="code">
357 Image *ImplodeImage(const Image *image,const double amount,
358 ExceptionInfo *exception)
359</pre>
360
cristy7a40ba82011-01-08 20:31:18 +0000361<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000362
363<h5>implode_image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000364<p>Method ImplodeImage returns a pointer to the image after it is implode. A null image is returned if there is a memory shortage.</p>
cristy3ed852e2009-09-05 21:47:34 +0000365
366<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000367<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000368
369<h5>amount</h5>
cristy7a40ba82011-01-08 20:31:18 +0000370<p>Define the extent of the implosion.</p>
cristy3ed852e2009-09-05 21:47:34 +0000371
372<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000373<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000374
375 </div>
cristy7a40ba82011-01-08 20:31:18 +0000376<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
377_8c.html" id="The_MorphImages">The MorphImages</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000378<div class="doc-section">
379
cristy7a40ba82011-01-08 20:31:18 +0000380<p>The MorphImages() method requires a minimum of two images. The first image is transformed into the second by a number of intervening images as specified by frames.</p>
cristy3ed852e2009-09-05 21:47:34 +0000381
382<p>The format of the MorphImage method is:</p>
383
384<pre class="code">
cristybb503372010-05-27 20:51:26 +0000385 Image *MorphImages(const Image *image,const size_t number_frames,
cristy3ed852e2009-09-05 21:47:34 +0000386 ExceptionInfo *exception)
387</pre>
388
cristy7a40ba82011-01-08 20:31:18 +0000389<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000390
391<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000392<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000393
394<h5>number_frames</h5>
cristy7a40ba82011-01-08 20:31:18 +0000395<p>Define the number of in-between image to generate. The more in-between frames, the smoother the morph.</p>
cristy3ed852e2009-09-05 21:47:34 +0000396
397<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000398<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000399
400 </div>
cristy7a40ba82011-01-08 20:31:18 +0000401<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
402_8c.html" id="PlasmaImage">PlasmaImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000403<div class="doc-section">
404
cristy7a40ba82011-01-08 20:31:18 +0000405<p>PlasmaImage() initializes an image with plasma fractal values. The image must be initialized with a base color and the random number generator seeded before this method is called.</p>
cristy3ed852e2009-09-05 21:47:34 +0000406
407<p>The format of the PlasmaImage method is:</p>
408
409<pre class="code">
410 MagickBooleanType PlasmaImage(Image *image,const SegmentInfo *segment,
cristybb503372010-05-27 20:51:26 +0000411 size_t attenuate,size_t depth)
cristy3ed852e2009-09-05 21:47:34 +0000412</pre>
413
cristy7a40ba82011-01-08 20:31:18 +0000414<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000415
416<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000417<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000418
419<h5>segment</h5>
cristy7a40ba82011-01-08 20:31:18 +0000420<p> Define the region to apply plasma fractals values.</p>
cristy3ed852e2009-09-05 21:47:34 +0000421
422<h5>attenuate</h5>
cristy7a40ba82011-01-08 20:31:18 +0000423<p>Define the plasma attenuation factor.</p>
cristy3ed852e2009-09-05 21:47:34 +0000424
425<h5>depth</h5>
cristy7a40ba82011-01-08 20:31:18 +0000426<p>Limit the plasma recursion depth.</p>
cristy3ed852e2009-09-05 21:47:34 +0000427
428 </div>
cristy7a40ba82011-01-08 20:31:18 +0000429<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
430_8c.html" id="PolaroidImage">PolaroidImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000431<div class="doc-section">
432
cristy7a40ba82011-01-08 20:31:18 +0000433<p>PolaroidImage() simulates a Polaroid picture.</p>
cristy3ed852e2009-09-05 21:47:34 +0000434
435<p>The format of the AnnotateImage method is:</p>
436
437<pre class="code">
438 Image *PolaroidImage(const Image *image,const DrawInfo *draw_info,
439 const double angle,ExceptionInfo exception)
440</pre>
441
cristy7a40ba82011-01-08 20:31:18 +0000442<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000443
444<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000445<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000446
447<h5>draw_info</h5>
cristy7a40ba82011-01-08 20:31:18 +0000448<p>the draw info.</p>
cristy3ed852e2009-09-05 21:47:34 +0000449
450<h5>angle</h5>
cristy7a40ba82011-01-08 20:31:18 +0000451<p>Apply the effect along this angle.</p>
cristy3ed852e2009-09-05 21:47:34 +0000452
453<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000454<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000455
456 </div>
cristy7a40ba82011-01-08 20:31:18 +0000457<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
458_8c.html" id="MagickSepiaToneImage">MagickSepiaToneImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000459<div class="doc-section">
460
cristy7a40ba82011-01-08 20:31:18 +0000461<p>MagickSepiaToneImage() applies a special effect to the image, similar to the effect achieved in a photo darkroom by sepia toning. Threshold ranges from 0 to QuantumRange and is a measure of the extent of the sepia toning. A threshold of 80 is a good starting point for a reasonable tone.</p>
cristy3ed852e2009-09-05 21:47:34 +0000462
463<p>The format of the SepiaToneImage method is:</p>
464
465<pre class="code">
466 Image *SepiaToneImage(const Image *image,const double threshold,
467 ExceptionInfo *exception)
468</pre>
469
cristy7a40ba82011-01-08 20:31:18 +0000470<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000471
472<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000473<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000474
475<h5>threshold</h5>
cristy7a40ba82011-01-08 20:31:18 +0000476<p>the tone threshold.</p>
cristy3ed852e2009-09-05 21:47:34 +0000477
478<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000479<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000480
481 </div>
cristy7a40ba82011-01-08 20:31:18 +0000482<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
483_8c.html" id="ShadowImage">ShadowImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000484<div class="doc-section">
485
cristy7a40ba82011-01-08 20:31:18 +0000486<p>ShadowImage() simulates a shadow from the specified image and returns it.</p>
cristy3ed852e2009-09-05 21:47:34 +0000487
488<p>The format of the ShadowImage method is:</p>
489
490<pre class="code">
491 Image *ShadowImage(const Image *image,const double opacity,
cristybb503372010-05-27 20:51:26 +0000492 const double sigma,const ssize_t x_offset,const ssize_t y_offset,
cristy3ed852e2009-09-05 21:47:34 +0000493 ExceptionInfo *exception)
494</pre>
495
cristy7a40ba82011-01-08 20:31:18 +0000496<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000497
498<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000499<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000500
501<h5>opacity</h5>
cristy7a40ba82011-01-08 20:31:18 +0000502<p>percentage transparency.</p>
cristy3ed852e2009-09-05 21:47:34 +0000503
504<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000505<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000506
507<h5>x_offset</h5>
cristy7a40ba82011-01-08 20:31:18 +0000508<p>the shadow x-offset.</p>
cristy3ed852e2009-09-05 21:47:34 +0000509
510<h5>y_offset</h5>
cristy7a40ba82011-01-08 20:31:18 +0000511<p>the shadow y-offset.</p>
cristy3ed852e2009-09-05 21:47:34 +0000512
513<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000514<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000515
516 </div>
cristy7a40ba82011-01-08 20:31:18 +0000517<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
518_8c.html" id="SketchImage">SketchImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000519<div class="doc-section">
520
cristy7a40ba82011-01-08 20:31:18 +0000521<p>SketchImage() simulates a pencil sketch. We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and SketchImage() selects a suitable radius for you. Angle gives the angle of the sketch.</p>
cristy3ed852e2009-09-05 21:47:34 +0000522
523<p>The format of the SketchImage method is:</p>
524
525<pre class="code">
526 Image *SketchImage(const Image *image,const double radius,
527 const double sigma,const double angle,ExceptionInfo *exception)
528</pre>
529
cristy7a40ba82011-01-08 20:31:18 +0000530<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000531
532<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000533<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000534
535<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000536<p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
cristy3ed852e2009-09-05 21:47:34 +0000537
538<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000539<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000540
541<h5>angle</h5>
cristy7a40ba82011-01-08 20:31:18 +0000542<p>Apply the effect along this angle.</p>
cristy3ed852e2009-09-05 21:47:34 +0000543
544<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000545<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000546
547 </div>
cristy7a40ba82011-01-08 20:31:18 +0000548<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
549_8c.html" id="SolarizeImage">SolarizeImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000550<div class="doc-section">
551
cristy7a40ba82011-01-08 20:31:18 +0000552<p>SolarizeImage() applies a special effect to the image, similar to the effect achieved in a photo darkroom by selectively exposing areas of photo sensitive paper to light. Threshold ranges from 0 to QuantumRange and is a measure of the extent of the solarization.</p>
cristy3ed852e2009-09-05 21:47:34 +0000553
554<p>The format of the SolarizeImage method is:</p>
555
556<pre class="code">
557 MagickBooleanType SolarizeImage(Image *image,const double threshold)
558</pre>
559
cristy7a40ba82011-01-08 20:31:18 +0000560<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000561
562<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000563<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000564
565<h5>threshold</h5>
cristy7a40ba82011-01-08 20:31:18 +0000566<p>Define the extent of the solarization.</p>
cristy3ed852e2009-09-05 21:47:34 +0000567
568 </div>
cristy7a40ba82011-01-08 20:31:18 +0000569<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
570_8c.html" id="SteganoImage">SteganoImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000571<div class="doc-section">
572
cristy7a40ba82011-01-08 20:31:18 +0000573<p>SteganoImage() hides a digital watermark within the image. Recover the hidden watermark later to prove that the authenticity of an image. Offset defines the start position within the image to hide the watermark.</p>
cristy3ed852e2009-09-05 21:47:34 +0000574
575<p>The format of the SteganoImage method is:</p>
576
577<pre class="code">
578 Image *SteganoImage(const Image *image,Image *watermark,
579 ExceptionInfo *exception)
580</pre>
581
cristy7a40ba82011-01-08 20:31:18 +0000582<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000583
584<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000585<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000586
587<h5>watermark</h5>
cristy7a40ba82011-01-08 20:31:18 +0000588<p>the watermark image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000589
590<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000591<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000592
593 </div>
cristy7a40ba82011-01-08 20:31:18 +0000594<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
595_8c.html" id="StereoAnaglyphImage">StereoAnaglyphImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000596<div class="doc-section">
597
cristy7a40ba82011-01-08 20:31:18 +0000598<p>StereoAnaglyphImage() combines two images and produces a single image that is the composite of a left and right image of a stereo pair. Special red-green stereo glasses are required to view this effect.</p>
cristy3ed852e2009-09-05 21:47:34 +0000599
600<p>The format of the StereoAnaglyphImage method is:</p>
601
602<pre class="code">
603 Image *StereoImage(const Image *left_image,const Image *right_image,
604 ExceptionInfo *exception)
605 Image *StereoAnaglyphImage(const Image *left_image,
cristybb503372010-05-27 20:51:26 +0000606 const Image *right_image,const ssize_t x_offset,const ssize_t y_offset,
cristy3ed852e2009-09-05 21:47:34 +0000607 ExceptionInfo *exception)
608</pre>
609
cristy7a40ba82011-01-08 20:31:18 +0000610<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000611
612<h5>left_image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000613<p>the left image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000614
615<h5>right_image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000616<p>the right image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000617
618<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000619<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000620
621<h5>x_offset</h5>
cristy7a40ba82011-01-08 20:31:18 +0000622<p>amount, in pixels, by which the left image is offset to the right of the right image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000623
624<h5>y_offset</h5>
cristy7a40ba82011-01-08 20:31:18 +0000625<p>amount, in pixels, by which the left image is offset to the bottom of the right image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000626
627
628 </div>
cristy7a40ba82011-01-08 20:31:18 +0000629<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
630_8c.html" id="SwirlImage">SwirlImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000631<div class="doc-section">
632
cristy7a40ba82011-01-08 20:31:18 +0000633<p>SwirlImage() swirls the pixels about the center of the image, where degrees indicates the sweep of the arc through which each pixel is moved. You get a more dramatic effect as the degrees move from 1 to 360.</p>
cristy3ed852e2009-09-05 21:47:34 +0000634
635<p>The format of the SwirlImage method is:</p>
636
637<pre class="code">
638 Image *SwirlImage(const Image *image,double degrees,
639 ExceptionInfo *exception)
640</pre>
641
cristy7a40ba82011-01-08 20:31:18 +0000642<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000643
644<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000645<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000646
647<h5>degrees</h5>
cristy7a40ba82011-01-08 20:31:18 +0000648<p>Define the tightness of the swirling effect.</p>
cristy3ed852e2009-09-05 21:47:34 +0000649
650<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000651<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000652
653 </div>
cristy7a40ba82011-01-08 20:31:18 +0000654<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
655_8c.html" id="TintImage">TintImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000656<div class="doc-section">
657
cristy7a40ba82011-01-08 20:31:18 +0000658<p>TintImage() applies a color vector to each pixel in the image. The length of the vector is 0 for black and white and at its maximum for the midtones. The vector weighting function is f(x)=(1-(4.0*((x-0.5)*(x-0.5))))</p>
cristy3ed852e2009-09-05 21:47:34 +0000659
660<p>The format of the TintImage method is:</p>
661
662<pre class="code">
663 Image *TintImage(const Image *image,const char *opacity,
664 const PixelPacket tint,ExceptionInfo *exception)
665</pre>
666
cristy7a40ba82011-01-08 20:31:18 +0000667<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000668
669<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000670<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000671
672<h5>opacity</h5>
cristy7a40ba82011-01-08 20:31:18 +0000673<p>A color value used for tinting.</p>
cristy3ed852e2009-09-05 21:47:34 +0000674
675<h5>tint</h5>
cristy7a40ba82011-01-08 20:31:18 +0000676<p>A color value used for tinting.</p>
cristy3ed852e2009-09-05 21:47:34 +0000677
678<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000679<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000680
681 </div>
cristy7a40ba82011-01-08 20:31:18 +0000682<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
683_8c.html" id="VignetteImage">VignetteImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000684<div class="doc-section">
685
cristy7a40ba82011-01-08 20:31:18 +0000686<p>VignetteImage() softens the edges of the image in vignette style.</p>
cristy3ed852e2009-09-05 21:47:34 +0000687
688<p>The format of the VignetteImage method is:</p>
689
690<pre class="code">
691 Image *VignetteImage(const Image *image,const double radius,
cristybb503372010-05-27 20:51:26 +0000692 const double sigma,const ssize_t x,const ssize_t y,ExceptionInfo *exception)
cristy3ed852e2009-09-05 21:47:34 +0000693</pre>
694
cristy7a40ba82011-01-08 20:31:18 +0000695<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000696
697<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000698<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000699
700<h5>radius</h5>
cristy7a40ba82011-01-08 20:31:18 +0000701<p>the radius of the pixel neighborhood.</p>
cristy3ed852e2009-09-05 21:47:34 +0000702
703<h5>sigma</h5>
cristy7a40ba82011-01-08 20:31:18 +0000704<p>the standard deviation of the Gaussian, in pixels.</p>
cristy3ed852e2009-09-05 21:47:34 +0000705
706<h5>x, y</h5>
cristy7a40ba82011-01-08 20:31:18 +0000707<p>Define the x and y ellipse offset.</p>
cristy3ed852e2009-09-05 21:47:34 +0000708
709<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000710<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000711
712 </div>
cristy7a40ba82011-01-08 20:31:18 +0000713<h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
714_8c.html" id="WaveImage">WaveImage</a></h2>
cristy3ed852e2009-09-05 21:47:34 +0000715<div class="doc-section">
716
cristy7a40ba82011-01-08 20:31:18 +0000717<p>WaveImage() creates a "ripple" effect in the image by shifting the pixels vertically along a sine wave whose amplitude and wavelength is specified by the given parameters.</p>
cristy3ed852e2009-09-05 21:47:34 +0000718
719<p>The format of the WaveImage method is:</p>
720
721<pre class="code">
722 Image *WaveImage(const Image *image,const double amplitude,
723 const double wave_length,ExceptionInfo *exception)
724</pre>
725
cristy7a40ba82011-01-08 20:31:18 +0000726<p>A description of each parameter follows:</p>
cristy3ed852e2009-09-05 21:47:34 +0000727
728<h5>image</h5>
cristy7a40ba82011-01-08 20:31:18 +0000729<p>the image.</p>
cristy3ed852e2009-09-05 21:47:34 +0000730
731<h5>amplitude, wave_length</h5>
cristy7a40ba82011-01-08 20:31:18 +0000732<p>Define the amplitude and wave length of the sine wave.</p>
cristy3ed852e2009-09-05 21:47:34 +0000733
734<h5>exception</h5>
cristy7a40ba82011-01-08 20:31:18 +0000735<p>return any errors or warnings in this structure.</p>
cristy3ed852e2009-09-05 21:47:34 +0000736
737 </div>
cristy3eaa0ef2010-03-06 20:35:26 +0000738
739</div>
740
741<div id="linkbar">
cristyce69bb02010-07-27 19:49:46 +0000742 <span id="linkbar-west">&nbsp;</span>
cristy3eaa0ef2010-03-06 20:35:26 +0000743 <span id="linkbar-center">
744 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;
cristya8902942010-07-30 00:49:52 +0000745 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
cristy3eaa0ef2010-03-06 20:35:26 +0000746 </span>
747 <span id="linkbar-east">&nbsp;</span>
748 </div>
749 <div class="footer">
cristy4103d562010-12-10 01:38:54 +0000750 <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>
cristy3eaa0ef2010-03-06 20:35:26 +0000751 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
752 </div>
753 <div style="clear: both; margin: 0; width: 100%; "></div>
cristya8902942010-07-30 00:49:52 +0000754 <script type="text/javascript">
755 var _gaq = _gaq || [];
756 _gaq.push(['_setAccount', 'UA-17690367-1']);
757 _gaq.push(['_trackPageview']);
758
759 (function() {
760 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
761 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
762 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
763 })();
764 </script>
cristy3eaa0ef2010-03-06 20:35:26 +0000765</body>
766</html>