]> granicus.if.org Git - imagemagick/blob - www/api/fx.html
d35a04f11e115fb2f94b20830b991111503eb577
[imagemagick] / www / api / fx.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" \r
2   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">\r
4 <head>\r
5   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>\r
6   <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>\r
7   <title>ImageMagick: MagickCore, C API for ImageMagick: Add a Special Effect</title>
8   <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"/>
11   <meta name="Application-name" content="ImageMagick"/>
12   <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."/>
13   <meta name="Application-url" content="http://www.imagemagick.org"/>
14   <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"/>
16   <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"/>
22   <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
23   <meta name="Distribution" content="Global"/>
24   <link rel="icon" href="../../images/wand.png"/>
25   <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"/>\r
27   <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />\r
28   <style type="text/css" media="all">\r
29     @import url("../../www/magick.css");\r
30   </style>\r
31   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>\r
32   <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>\r
33   <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />\r
34   <script type="text/javascript">\r
35     $(document).ready(function() {\r
36       $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({\r
37         'transitionIn'  : 'elastic',\r
38         'transitionOut' : 'elastic',\r
39         'overlayShow'   : false,\r
40         'opacity'       : true\r
41       });\r
42     });\r
43   </script>\r
44 </head>\r
45 \r
46 <body id="www-imagemagick-org">\r
47 <div class="titlebar">\r
48 <a href="../../index.html">\r
49   <img src="../../images/script.png" alt="[ImageMagick]"\r
50   style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>\r
51 <a href="http://www.networkredux.com">\r
52   <img src="../../images/networkredux.png" alt="[sponsor]"\r
53   style="margin-top: 42px; border: 0px; float: left;" /></a>\r
54 <a href="http://www.imagemagick.org/discourse-server/">\r
55   <img src="../../images/logo.jpg" alt=""\r
56   style="width: 114px; height: 118px; border: 0px; float: right;" /></a>\r
57 <a href="../../index.html">\r
58   <img src="../../images/sprite.jpg" alt=""\r
59   style="width: 114px; height: 118px; border: 0px; float: right;" /></a>\r
60 </div>\r
61 \r
62 <div class="westbar">\r
63 \r
64 <div class="menu">
65   <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
66 </div>
67 <div class="sep"></div>\r
68 <div class="menu">
69   <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>\r
81 <div class="menu">
82   <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
83 </div>
84 <div class="sub">
85     <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
86 </div>
87 <div class="sub">
88     <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
89 </div>
90 <div class="sub">
91     <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
92 </div>
93 <div class="menu">
94   <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
95 </div>
96 <div class="sub">
97     <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
98 </div>
99 <div class="sub">
100     <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
101 </div>
102 <div class="sub">
103     <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
104 </div>
105 <div class="sub">
106     <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
107 </div>
108 <div class="sep"></div>\r
109 <div  class="menu">
110    <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
111 </div>
112 <div class="sub">
113     <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
114 </div>
115 <div class="sub">
116     <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
117  </div>
118 <div class="menu">
119   <a title="Resources" href="../../www/resources.html">Resources</a>
120 </div>
121 <div class="menu">
122   <a title="Architecture" href="../../www/architecture.html">Architecture</a>
123 </div>
124 <div class="menu">
125   <a title="Download" href="../../www/download.html">Download</a>
126 </div>
127 <div class="sep"></div>\r
128 <div class="menu">
129   <a title="Search" href="../../www/search.html">Search</a>
130 </div>
131 <div class="sep"></div>\r
132 <div class="menu">
133   <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
134 </div>
135 <div  class="sub">
136   <a title="Site Map: Links" href="../../www/links.html">Links</a>
137 </div>
138 <div class="sep"></div>\r
139 <div  class="menu">
140   <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
141
142 <div class="sponsbox">
143 <div class="sponsor">
144   <a title="Sponsor: Web Hosting" href="http://www.bodhost.com/hosting.shtml">Web Hosting</a><!-- 201104010090 -->
145 </div>
146 <div  class="sponsor">
147   <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
148 </div>
149 <div  class="sponsor">
150   <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
151 </div>
152 <div  class="sponsor">
153   <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
154 </div>
155 <div  class="sponsor">
156    <a title="Sponsor: Free Catalogs" href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 20120801000600 -->
157 </div>
158 </div>
159 </div>
160 </div>\r
161 \r
162 <div class="eastbar">\r
163   <script type="text/javascript">\r
164   <!--\r
165     google_ad_client = "pub-3129977114552745";\r
166     google_ad_slot = "0574824969";\r
167     google_ad_width = 160;\r
168     google_ad_height = 600;\r
169   //-->\r
170   </script>\r
171   <script type="text/javascript"\r
172     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\r
173   </script>\r
174 </div>\r
175 \r
176 <div class="main">\r
177 \r
178 <h1>Module fx
179  Methods</h1>
180 <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>
181
182 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
183 _8c.html" id="AddNoiseImage">AddNoiseImage</a></h2>
184 <div class="doc-section">
185
186 <p>AddNoiseImage() adds random noise to the image.</p>
187
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
197 <p>A description of each parameter follows:</p>
198
199 <h5>image</h5>
200 <p>the image.</p>
201
202 <h5>channel</h5>
203 <p>the channel type.</p>
204
205 <h5>noise_type</h5>
206 <p>The type of noise: Uniform, Gaussian, Multiplicative, Impulse, Laplacian, or Poisson.</p>
207
208 <h5>exception</h5>
209 <p>return any errors or warnings in this structure.</p>
210
211  </div>
212 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
213 _8c.html" id="BlueShiftImage">BlueShiftImage</a></h2>
214 <div class="doc-section">
215
216 <p>BlueShiftImage() mutes the colors of the image to simulate a scene at nighttime in the moonlight.</p>
217
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
225 <p>A description of each parameter follows:</p>
226
227 <h5>image</h5>
228 <p>the image.</p>
229
230 <h5>factor</h5>
231 <p>the shift factor.</p>
232
233 <h5>exception</h5>
234 <p>return any errors or warnings in this structure.</p>
235
236  </div>
237 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
238 _8c.html" id="CharcoalImage">CharcoalImage</a></h2>
239 <div class="doc-section">
240
241 <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>
242
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
250 <p>A description of each parameter follows:</p>
251
252 <h5>image</h5>
253 <p>the image.</p>
254
255 <h5>radius</h5>
256 <p>the radius of the pixel neighborhood.</p>
257
258 <h5>sigma</h5>
259 <p>the standard deviation of the Gaussian, in pixels.</p>
260
261 <h5>exception</h5>
262 <p>return any errors or warnings in this structure.</p>
263
264  </div>
265 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
266 _8c.html" id="ColorizeImage">ColorizeImage</a></h2>
267 <div class="doc-section">
268
269 <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>
270
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
278 <p>A description of each parameter follows:</p>
279
280 <h5>image</h5>
281 <p>the image.</p>
282
283 <h5>opacity</h5>
284 <p>A character string indicating the level of opacity as a percentage.</p>
285
286 <h5>colorize</h5>
287 <p>A color value.</p>
288
289 <h5>exception</h5>
290 <p>return any errors or warnings in this structure.</p>
291
292  </div>
293 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
294 _8c.html" id="ColorMatrixImage">ColorMatrixImage</a></h2>
295 <div class="doc-section">
296
297 <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>
298
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
306 <p>A description of each parameter follows:</p>
307
308 <h5>image</h5>
309 <p>the image.</p>
310
311 <h5>color_matrix</h5>
312 <p>the color matrix.</p>
313
314 <h5>exception</h5>
315 <p>return any errors or warnings in this structure.</p>
316
317  </div>
318 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
319 _8c.html" id="FxImage">FxImage</a></h2>
320 <div class="doc-section">
321
322 <p>FxImage() applies a mathematical expression to the specified image.</p>
323
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
333 <p>A description of each parameter follows:</p>
334
335 <h5>image</h5>
336 <p>the image.</p>
337
338 <h5>channel</h5>
339 <p>the channel.</p>
340
341 <h5>expression</h5>
342 <p>A mathematical expression.</p>
343
344 <h5>exception</h5>
345 <p>return any errors or warnings in this structure.</p>
346
347  </div>
348 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
349 _8c.html" id="ImplodeImage">ImplodeImage</a></h2>
350 <div class="doc-section">
351
352 <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>
353
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
361 <p>A description of each parameter follows:</p>
362
363 <h5>implode_image</h5>
364 <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>
365
366 <h5>image</h5>
367 <p>the image.</p>
368
369 <h5>amount</h5>
370 <p>Define the extent of the implosion.</p>
371
372 <h5>exception</h5>
373 <p>return any errors or warnings in this structure.</p>
374
375  </div>
376 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
377 _8c.html" id="The_MorphImages">The MorphImages</a></h2>
378 <div class="doc-section">
379
380 <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>
381
382 <p>The format of the MorphImage method is:</p>
383
384 <pre class="code">
385   Image *MorphImages(const Image *image,const size_t number_frames,
386     ExceptionInfo *exception)
387 </pre>
388
389 <p>A description of each parameter follows:</p>
390
391 <h5>image</h5>
392 <p>the image.</p>
393
394 <h5>number_frames</h5>
395 <p>Define the number of in-between image to generate. The more in-between frames, the smoother the morph.</p>
396
397 <h5>exception</h5>
398 <p>return any errors or warnings in this structure.</p>
399
400  </div>
401 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
402 _8c.html" id="PlasmaImage">PlasmaImage</a></h2>
403 <div class="doc-section">
404
405 <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>
406
407 <p>The format of the PlasmaImage method is:</p>
408
409 <pre class="code">
410   MagickBooleanType PlasmaImage(Image *image,const SegmentInfo *segment,
411     size_t attenuate,size_t depth)
412 </pre>
413
414 <p>A description of each parameter follows:</p>
415
416 <h5>image</h5>
417 <p>the image.</p>
418
419 <h5>segment</h5>
420 <p> Define the region to apply plasma fractals values.</p>
421
422 <h5>attenuate</h5>
423 <p>Define the plasma attenuation factor.</p>
424
425 <h5>depth</h5>
426 <p>Limit the plasma recursion depth.</p>
427
428  </div>
429 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
430 _8c.html" id="PolaroidImage">PolaroidImage</a></h2>
431 <div class="doc-section">
432
433 <p>PolaroidImage() simulates a Polaroid picture.</p>
434
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
442 <p>A description of each parameter follows:</p>
443
444 <h5>image</h5>
445 <p>the image.</p>
446
447 <h5>draw_info</h5>
448 <p>the draw info.</p>
449
450 <h5>angle</h5>
451 <p>Apply the effect along this angle.</p>
452
453 <h5>exception</h5>
454 <p>return any errors or warnings in this structure.</p>
455
456  </div>
457 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
458 _8c.html" id="MagickSepiaToneImage">MagickSepiaToneImage</a></h2>
459 <div class="doc-section">
460
461 <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>
462
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
470 <p>A description of each parameter follows:</p>
471
472 <h5>image</h5>
473 <p>the image.</p>
474
475 <h5>threshold</h5>
476 <p>the tone threshold.</p>
477
478 <h5>exception</h5>
479 <p>return any errors or warnings in this structure.</p>
480
481  </div>
482 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
483 _8c.html" id="ShadowImage">ShadowImage</a></h2>
484 <div class="doc-section">
485
486 <p>ShadowImage() simulates a shadow from the specified image and returns it.</p>
487
488 <p>The format of the ShadowImage method is:</p>
489
490 <pre class="code">
491   Image *ShadowImage(const Image *image,const double opacity,
492     const double sigma,const ssize_t x_offset,const ssize_t y_offset,
493     ExceptionInfo *exception)
494 </pre>
495
496 <p>A description of each parameter follows:</p>
497
498 <h5>image</h5>
499 <p>the image.</p>
500
501 <h5>opacity</h5>
502 <p>percentage transparency.</p>
503
504 <h5>sigma</h5>
505 <p>the standard deviation of the Gaussian, in pixels.</p>
506
507 <h5>x_offset</h5>
508 <p>the shadow x-offset.</p>
509
510 <h5>y_offset</h5>
511 <p>the shadow y-offset.</p>
512
513 <h5>exception</h5>
514 <p>return any errors or warnings in this structure.</p>
515
516  </div>
517 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
518 _8c.html" id="SketchImage">SketchImage</a></h2>
519 <div class="doc-section">
520
521 <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>
522
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
530 <p>A description of each parameter follows:</p>
531
532 <h5>image</h5>
533 <p>the image.</p>
534
535 <h5>radius</h5>
536 <p>the radius of the Gaussian, in pixels, not counting the center pixel.</p>
537
538 <h5>sigma</h5>
539 <p>the standard deviation of the Gaussian, in pixels.</p>
540
541 <h5>angle</h5>
542 <p>Apply the effect along this angle.</p>
543
544 <h5>exception</h5>
545 <p>return any errors or warnings in this structure.</p>
546
547  </div>
548 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
549 _8c.html" id="SolarizeImage">SolarizeImage</a></h2>
550 <div class="doc-section">
551
552 <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>
553
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
560 <p>A description of each parameter follows:</p>
561
562 <h5>image</h5>
563 <p>the image.</p>
564
565 <h5>threshold</h5>
566 <p>Define the extent of the solarization.</p>
567
568  </div>
569 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
570 _8c.html" id="SteganoImage">SteganoImage</a></h2>
571 <div class="doc-section">
572
573 <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>
574
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
582 <p>A description of each parameter follows:</p>
583
584 <h5>image</h5>
585 <p>the image.</p>
586
587 <h5>watermark</h5>
588 <p>the watermark image.</p>
589
590 <h5>exception</h5>
591 <p>return any errors or warnings in this structure.</p>
592
593  </div>
594 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
595 _8c.html" id="StereoAnaglyphImage">StereoAnaglyphImage</a></h2>
596 <div class="doc-section">
597
598 <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>
599
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,
606     const Image *right_image,const ssize_t x_offset,const ssize_t y_offset,
607     ExceptionInfo *exception)
608 </pre>
609
610 <p>A description of each parameter follows:</p>
611
612 <h5>left_image</h5>
613 <p>the left image.</p>
614
615 <h5>right_image</h5>
616 <p>the right image.</p>
617
618 <h5>exception</h5>
619 <p>return any errors or warnings in this structure.</p>
620
621 <h5>x_offset</h5>
622 <p>amount, in pixels, by which the left image is offset to the right of the right image.</p>
623
624 <h5>y_offset</h5>
625 <p>amount, in pixels, by which the left image is offset to the bottom of the right image.</p>
626
627
628  </div>
629 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
630 _8c.html" id="SwirlImage">SwirlImage</a></h2>
631 <div class="doc-section">
632
633 <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>
634
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
642 <p>A description of each parameter follows:</p>
643
644 <h5>image</h5>
645 <p>the image.</p>
646
647 <h5>degrees</h5>
648 <p>Define the tightness of the swirling effect.</p>
649
650 <h5>exception</h5>
651 <p>return any errors or warnings in this structure.</p>
652
653  </div>
654 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
655 _8c.html" id="TintImage">TintImage</a></h2>
656 <div class="doc-section">
657
658 <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>
659
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
667 <p>A description of each parameter follows:</p>
668
669 <h5>image</h5>
670 <p>the image.</p>
671
672 <h5>opacity</h5>
673 <p>A color value used for tinting.</p>
674
675 <h5>tint</h5>
676 <p>A color value used for tinting.</p>
677
678 <h5>exception</h5>
679 <p>return any errors or warnings in this structure.</p>
680
681  </div>
682 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
683 _8c.html" id="VignetteImage">VignetteImage</a></h2>
684 <div class="doc-section">
685
686 <p>VignetteImage() softens the edges of the image in vignette style.</p>
687
688 <p>The format of the VignetteImage method is:</p>
689
690 <pre class="code">
691   Image *VignetteImage(const Image *image,const double radius,
692     const double sigma,const ssize_t x,const ssize_t y,ExceptionInfo *exception)
693 </pre>
694
695 <p>A description of each parameter follows:</p>
696
697 <h5>image</h5>
698 <p>the image.</p>
699
700 <h5>radius</h5>
701 <p>the radius of the pixel neighborhood.</p>
702
703 <h5>sigma</h5>
704 <p>the standard deviation of the Gaussian, in pixels.</p>
705
706 <h5>x, y</h5>
707 <p>Define the x and y ellipse offset.</p>
708
709 <h5>exception</h5>
710 <p>return any errors or warnings in this structure.</p>
711
712  </div>
713 <h2><a href="http://www.wizards-toolkit.org/api/MagickCore/fx
714 _8c.html" id="WaveImage">WaveImage</a></h2>
715 <div class="doc-section">
716
717 <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>
718
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
726 <p>A description of each parameter follows:</p>
727
728 <h5>image</h5>
729 <p>the image.</p>
730
731 <h5>amplitude, wave_length</h5>
732 <p>Define the amplitude and wave length of the sine wave.</p>
733
734 <h5>exception</h5>
735 <p>return any errors or warnings in this structure.</p>
736
737  </div>
738 \r
739 </div>\r
740 \r
741 <div id="linkbar">\r
742     <span id="linkbar-west">&nbsp;</span>\r
743     <span id="linkbar-center">\r
744       <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> &bull;\r
745       <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>\r
746     </span>\r
747     <span id="linkbar-east">&nbsp;</span>\r
748   </div>\r
749   <div class="footer">\r
750     <span id="footer-west">&copy; 1999-2011 ImageMagick Studio LLC</span>\r
751     <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>\r
752   </div>\r
753   <div style="clear: both; margin: 0; width: 100%; "></div>\r
754   <script type="text/javascript">\r
755     var _gaq = _gaq || [];\r
756     _gaq.push(['_setAccount', 'UA-17690367-1']);\r
757     _gaq.push(['_trackPageview']);\r
758 \r
759     (function() {\r
760       var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\r
761       ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\r
762       var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\r
763     })();\r
764   </script>\r
765 </body>\r
766 </html>\r