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
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: Deprecated Methods</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:, deprecated, methods, 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 <style type="text/css" media="all">
\r
28 @import url("../../www/magick.css");
\r
30 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
\r
31 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
\r
32 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
\r
33 <script type="text/javascript">
\r
34 $(document).ready(function() {
\r
35 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
\r
36 'transitionIn' : 'elastic',
\r
37 'transitionOut' : 'elastic',
\r
38 'overlayShow' : false,
\r
45 <body id="www-imagemagick-org">
\r
46 <div class="titlebar">
\r
47 <a href="../../index.html">
\r
48 <img src="../../images/script.png" alt="[ImageMagick]"
\r
49 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
50 <a href="http://www.networkredux.com">
\r
51 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
52 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
53 <a href="http://www.imagemagick.org/discourse-server/">
\r
54 <img src="../../images/logo.jpg" alt=""
\r
55 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
56 <a href="../../index.html">
\r
57 <img src="../../images/sprite.jpg" alt=""
\r
58 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
61 <div class="westbar">
\r
64 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
66 <div class="sep"></div>
\r
68 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
71 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
74 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
77 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
79 <div class="sep"></div>
\r
81 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
84 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
87 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
90 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
93 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
96 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
99 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
102 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
105 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
107 <div class="sep"></div>
\r
109 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
112 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
115 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
118 <a title="Resources" href="../../www/resources.html">Resources</a>
121 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
124 <a title="Download" href="../../www/download.html">Download</a>
126 <div class="sep"></div>
\r
128 <a title="Search" href="../http://www.imagemagick.org/script/search.php">Search</a>
130 <div class="sep"></div>
\r
132 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
135 <a title="Site Map: Links" href="../../www/links.html">Links</a>
137 <div class="sep"></div>
\r
139 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
141 <div class="sponsbox">
142 <div class="sponsor">
143 <a title="Sponsor: Webdesign" href="http://www.renehornig.com/">Webdesign</a><!-- 20111001000240 -->
145 <div class="sponsor">
146 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
148 <div class="sponsor">
149 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
151 <div class="sponsor">
152 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
158 <div class="eastbar">
\r
159 <script type="text/javascript">
\r
161 google_ad_client = "pub-3129977114552745";
\r
162 google_ad_slot = "0574824969";
\r
163 google_ad_width = 160;
\r
164 google_ad_height = 600;
\r
167 <script type="text/javascript"
\r
168 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
176 <p class="navigation-index">[<a href="#AcquireCacheViewIndexes">AcquireCacheViewIndexes</a> • <a href="#AcquireCacheViewPixels">AcquireCacheViewPixels</a> • <a href="#AcquireImagePixels">AcquireImagePixels</a> • <a href="#AcquireIndexes">AcquireIndexes</a> • <a href="#AcquireMemory">AcquireMemory</a> • <a href="#AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a> • <a href="#AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a> • <a href="#AcquireOneMagickPixel">AcquireOneMagickPixel</a> • <a href="#AcquireOnePixel">AcquireOnePixel</a> • <a href="#AcquireOneVirtualPixel">AcquireOneVirtualPixel</a> • <a href="#AcquirePixels">AcquirePixels</a> • <a href="#AffinityImage">AffinityImage</a> • <a href="#AffinityImages">AffinityImages</a> • <a href="#AllocateImage">AllocateImage</a> • <a href="#AllocateImageColormap">AllocateImageColormap</a> • <a href="#AllocateNextImage">AllocateNextImage</a> • <a href="#AllocateString">AllocateString</a> • <a href="#AverageImages">AverageImages</a> • <a href="#ChannelThresholdImage">ChannelThresholdImage</a> • <a href="#ClipPathImage">ClipPathImage</a> • <a href="#CloneImageAttributes">CloneImageAttributes</a> • <a href="#CloneMemory">CloneMemory</a> • <a href="#CloseCacheView">CloseCacheView</a> • <a href="#ColorFloodfill">ColorFloodfill</a> • <a href="#DeleteImageAttribute">DeleteImageAttribute</a> • <a href="#DeleteImageList">DeleteImageList</a> • <a href="#DeleteMagickRegistry">DeleteMagickRegistry</a> • <a href="#DescribeImage">DescribeImage</a> • <a href="#DestroyImageAttributes">DestroyImageAttributes</a> • <a href="#DestroyImages">DestroyImages</a> • <a href="#DestroyMagick">DestroyMagick</a> • <a href="#DispatchImage">DispatchImage</a> • <a href="#ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a> • <a href="#FlattenImages">FlattenImages</a> • <a href="#FormatImageAttribute">FormatImageAttribute</a> • <a href="#FormatString">FormatString</a> • <a href="#GetConfigureBlob">GetConfigureBlob</a> • <a href="#GetCacheView">GetCacheView</a> • <a href="#GetCacheViewIndexes">GetCacheViewIndexes</a> • <a href="#GetCacheViewPixels">GetCacheViewPixels</a> • <a href="#GetImageAttribute">GetImageAttribute</a> • <a href="#GetImageClippingPathAttribute">GetImageClippingPathAttribute</a> • <a href="#GetImageFromMagickRegistry">GetImageFromMagickRegistry</a> • <a href="#GetMagickRegistry">GetMagickRegistry</a> • <a href="#GetImageGeometry">GetImageGeometry</a> • <a href="#GetImageList">GetImageList</a> • <a href="#GetImageListIndex">GetImageListIndex</a> • <a href="#GetImageListSize">GetImageListSize</a> • <a href="#GetImagePixels">GetImagePixels</a> • <a href="#GetIndexes">GetIndexes</a> • <a href="#GetNextImage">GetNextImage</a> • <a href="#GetNextImageAttribute">GetNextImageAttribute</a> • <a href="#GetNumberScenes">GetNumberScenes</a> • <a href="#GetOnePixel">GetOnePixel</a> • <a href="#GetPixels">GetPixels</a> • <a href="#GetPreviousImage">GetPreviousImage</a> • <a href="#HSLTransform">HSLTransform</a> • <a href="#IdentityAffine">IdentityAffine</a> • <a href="#InitializeMagick">InitializeMagick</a> • <a href="#InterpolatePixelColor">InterpolatePixelColor</a> • <a href="#InterpretImageAttributes">InterpretImageAttributes</a> • <a href="#LevelImageColor">LevelImageColor</a> • <a href="#LiberateMemory">LiberateMemory</a> • <a href="#LiberateSemaphoreInfo">LiberateSemaphoreInfo</a> • <a href="#MagickIncarnate">MagickIncarnate</a> • <a href="#MagickMonitor">MagickMonitor</a> • <a href="#MapImage">MapImage</a> • <a href="#MapImages">MapImages</a> • <a href="#MatteFloodfill">MatteFloodfill</a> • <a href="#MaximumImages">MaximumImages</a> • <a href="#MinimumImages">MinimumImages</a> • <a href="#MosaicImages">MosaicImages</a> • <a href="#OpaqueImage">OpaqueImage</a> • <a href="#OpenCacheView">OpenCacheView</a> • <a href="#PaintFloodfill">PaintFloodfill</a> • <a href="#PaintOpaqueImage">PaintOpaqueImage</a> • <a href="#PaintTransparentImage">PaintTransparentImage</a> • <a href="#ParseSizeGeometry">ParseSizeGeometry</a> • <a href="#PopImageList">PopImageList</a> • <a href="#PopImagePixels">PopImagePixels</a> • <a href="#PostscriptGeometry">PostscriptGeometry</a> • <a href="#PushImageList">PushImageList</a> • <a href="#PushImagePixels">PushImagePixels</a> • <a href="#QuantizationError">QuantizationError</a> • <a href="#RandomChannelThresholdImage">RandomChannelThresholdImage</a> • <a href="#ReacquireMemory">ReacquireMemory</a> • <a href="#RecolorImage">RecolorImage</a> • <a href="#ResetImageAttributeIterator">ResetImageAttributeIterator</a> • <a href="#SetCacheViewPixels">SetCacheViewPixels</a> • <a href="#SetExceptionInfo">SetExceptionInfo</a> • <a href="#SetImage">SetImage</a> • <a href="#SetImageAttribute">SetImageAttribute</a> • <a href="#SetImageList">SetImageList</a> • <a href="#SetImagePixels">SetImagePixels</a> • <a href="#SetMagickRegistry">SetMagickRegistry</a> • <a href="#SetMonitorHandler">SetMonitorHandler</a> • <a href="#ShiftImageList">ShiftImageList</a> • <a href="#SpliceImageList">SpliceImageList</a> • <a href="#Strip">Strip</a> • <a href="#SyncCacheView">SyncCacheView</a> • <a href="#SyncCacheViewPixels">SyncCacheViewPixels</a> • <a href="#SyncImagePixels">SyncImagePixels</a> • <a href="#TemporaryFilename">TemporaryFilename</a> • <a href="#ThresholdImage">ThresholdImage</a> • <a href="#ThresholdImageChannel">ThresholdImageChannel</a> • <a href="#TransformHSL">TransformHSL</a> • <a href="#TranslateText">TranslateText</a> • <a href="#TransparentImage">TransparentImage</a> • <a href="#UnshiftImageList">UnshiftImageList</a> • <a href="#ZoomImage">ZoomImage</a>]</p>
178 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
179 _8c.html" target="source" name="AcquireCacheViewIndexes">AcquireCacheViewIndexes</a></h2>
180 <div class="doc-section">
182 <p>AcquireCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
184 <p>Deprecated, replace with:</p>
187 GetCacheViewVirtualIndexQueue(cache_view);
190 <p>The format of the AcquireCacheViewIndexes method is:</p>
193 const IndexPacket *AcquireCacheViewIndexes(const CacheView *cache_view)
196 <p>A description of each parameter follows:</p></ol>
199 <ol><p>the cache view.</p></ol>
202 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
203 _8c.html" target="source" name="AcquireCacheViewPixels">AcquireCacheViewPixels</a></h2>
204 <div class="doc-section">
206 <p>AcquireCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
208 <p>Deprecated, replace with:</p>
211 GetCacheViewVirtualPixels(cache_view,x,y,columns,rows,exception);
214 <p>The format of the AcquireCacheViewPixels method is:</p>
217 const PixelPacket *AcquireCacheViewPixels(const CacheView *cache_view,
218 const ssize_t x,const ssize_t y,const size_t columns,
219 const size_t rows,ExceptionInfo *exception)
222 <p>A description of each parameter follows:</p></ol>
225 <ol><p>the cache view.</p></ol>
227 <h5>x,y,columns,rows</h5>
228 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
231 <ol><p>return any errors or warnings in this structure.</p></ol>
234 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
235 _8c.html" target="source" name="AcquireImagePixels">AcquireImagePixels</a></h2>
236 <div class="doc-section">
238 <p>AcquireImagePixels() returns an immutable pixel region. If the region is successfully accessed, a pointer to it is returned, otherwise NULL is returned. The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected region is part of one row, or one or more full rows, since there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
240 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or the storage class is PseudoClass, call GetAuthenticIndexQueue() after invoking GetAuthenticPixels() to access the black color component or to obtain the colormap indexes (of type IndexPacket) corresponding to the region.</p></ol>
242 <p>If you plan to modify the pixels, use GetAuthenticPixels() instead.</p></ol>
244 <p>Note, the AcquireImagePixels() and GetAuthenticPixels() methods are not thread-safe. In a threaded environment, use GetCacheViewVirtualPixels() or GetCacheViewAuthenticPixels() instead.</p></ol>
246 <p>Deprecated, replace with:</p>
249 GetVirtualPixels(image,x,y,columns,rows,exception);
252 <p>The format of the AcquireImagePixels() method is:</p>
255 const PixelPacket *AcquireImagePixels(const Image *image,const ssize_t x,
256 const ssize_t y,const size_t columns,const size_t rows,
257 ExceptionInfo *exception)
260 <p>A description of each parameter follows:</p></ol>
263 <ol><p>the image.</p></ol>
265 <h5>x,y,columns,rows</h5>
266 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
269 <ol><p>return any errors or warnings in this structure.</p></ol>
272 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
273 _8c.html" target="source" name="AcquireIndexes">AcquireIndexes</a></h2>
274 <div class="doc-section">
276 <p>AcquireIndexes() returns the black channel or the colormap indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels(). NULL is returned if the black channel or colormap indexes are not available.</p></ol>
278 <p>Deprecated, replace with:</p>
281 GetVirtualIndexQueue(image);
284 <p>The format of the AcquireIndexes() method is:</p>
287 const IndexPacket *AcquireIndexes(const Image *image)
290 <p>A description of each parameter follows:</p></ol>
293 <ol><p>AcquireIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
296 <ol><p>the image.</p></ol>
299 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
300 _8c.html" target="source" name="AcquireMemory">AcquireMemory</a></h2>
301 <div class="doc-section">
303 <p>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use.</p></ol>
305 <p>The format of the AcquireMemory method is:</p>
308 void *AcquireMemory(const size_t size)
311 <p>A description of each parameter follows:</p></ol>
314 <ol><p>the size of the memory in bytes to allocate.</p></ol>
317 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
318 _8c.html" target="source" name="AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a></h2>
319 <div class="doc-section">
321 <p>AcquireOneCacheViewPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p></ol>
323 <p>Deprecated, replace with:</p>
326 GetOneCacheViewVirtualPixel(cache_view,x,y,pixel,exception);
329 <p>The format of the AcquireOneCacheViewPixel method is:</p>
332 MagickBooleanType AcquireOneCacheViewPixel(const CacheView *cache_view,
333 const ssize_t x,const ssize_t y,PixelPacket *pixel,ExceptionInfo *exception)
336 <p>A description of each parameter follows:</p></ol>
339 <ol><p>the cache view.</p></ol>
342 <ol><p>These values define the offset of the pixel.</p></ol>
345 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
348 <ol><p>return any errors or warnings in this structure.</p></ol>
351 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
352 _8c.html" target="source" name="AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a></h2>
353 <div class="doc-section">
355 <p>AcquireOneCacheViewVirtualPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p></ol>
357 <p>Deprecated, replace with:</p>
360 GetOneCacheViewVirtualMethodPixel(cache_view,virtual_pixel_method,
361 x,y,pixel,exception);
364 <p>The format of the AcquireOneCacheViewPixel method is:</p>
367 MagickBooleanType AcquireOneCacheViewVirtualPixel(
368 const CacheView *cache_view,
369 const VirtualPixelMethod virtual_pixel_method,const ssize_t x,
370 const ssize_t y,PixelPacket *pixel,ExceptionInfo *exception)
373 <p>A description of each parameter follows:</p></ol>
376 <ol><p>the cache view.</p></ol>
378 <h5>virtual_pixel_method</h5>
379 <ol><p>the virtual pixel method.</p></ol>
382 <ol><p>These values define the offset of the pixel.</p></ol>
385 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
388 <ol><p>return any errors or warnings in this structure.</p></ol>
391 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
392 _8c.html" target="source" name="AcquireOneMagickPixel">AcquireOneMagickPixel</a></h2>
393 <div class="doc-section">
395 <p>AcquireOneMagickPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
397 <p>Deprecated, replace with:</p>
400 MagickPixelPacket pixel;
401 GetOneVirtualMagickPixel(image,x,y,&pixel,exception);
404 <p>The format of the AcquireOneMagickPixel() method is:</p>
407 MagickPixelPacket AcquireOneMagickPixel(const Image image,const ssize_t x,
408 const ssize_t y,ExceptionInfo exception)
411 <p>A description of each parameter follows:</p></ol>
414 <ol><p>the image.</p></ol>
417 <ol><p>These values define the location of the pixel to return.</p></ol>
420 <ol><p>return any errors or warnings in this structure.</p></ol>
423 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
424 _8c.html" target="source" name="AcquireOnePixel">AcquireOnePixel</a></h2>
425 <div class="doc-section">
427 <p>AcquireOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
429 <p>Deprecated, replace with:</p>
433 GetOneVirtualPixel(image,x,y,&pixel,exception);
436 <p>The format of the AcquireOnePixel() method is:</p>
439 PixelPacket AcquireOnePixel(const Image image,const ssize_t x,
440 const ssize_t y,ExceptionInfo exception)
443 <p>A description of each parameter follows:</p></ol>
446 <ol><p>the image.</p></ol>
449 <ol><p>These values define the location of the pixel to return.</p></ol>
452 <ol><p>return any errors or warnings in this structure.</p></ol>
455 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
456 _8c.html" target="source" name="AcquireOneVirtualPixel">AcquireOneVirtualPixel</a></h2>
457 <div class="doc-section">
459 <p>AcquireOneVirtualPixel() returns a single pixel at the specified (x,y) location as defined by specified pixel method. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
461 <p>Deprecated, replace with:</p>
465 GetOneVirtualMethodPixel(image,virtual_pixel_method,x,y,&pixel,exception);
468 <p>The format of the AcquireOneVirtualPixel() method is:</p>
471 PixelPacket AcquireOneVirtualPixel(const Image image,
472 const VirtualPixelMethod virtual_pixel_method,const ssize_t x,
473 const ssize_t y,ExceptionInfo exception)
476 <p>A description of each parameter follows:</p></ol>
478 <h5>virtual_pixel_method</h5>
479 <ol><p>the virtual pixel method.</p></ol>
482 <ol><p>the image.</p></ol>
485 <ol><p>These values define the location of the pixel to return.</p></ol>
488 <ol><p>return any errors or warnings in this structure.</p></ol>
491 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
492 _8c.html" target="source" name="AcquirePixels">AcquirePixels</a></h2>
493 <div class="doc-section">
495 <p>AcquirePixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
497 <p>Deprecated, replace with:</p>
500 GetVirtualPixelQueue(image);
503 <p>The format of the AcquirePixels() method is:</p>
506 const PixelPacket *AcquirePixels(const Image image)
509 <p>A description of each parameter follows:</p></ol>
512 <ol><p>the image.</p></ol>
515 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
516 _8c.html" target="source" name="AffinityImage">AffinityImage</a></h2>
517 <div class="doc-section">
519 <p>AffinityImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
521 <p>Deprecated, replace with:</p>
524 RemapImage(quantize_info,image,affinity_image);
527 <p>The format of the AffinityImage method is:</p>
530 MagickBooleanType AffinityImage(const QuantizeInfo *quantize_info,
531 Image *image,const Image *affinity_image)
534 <p>A description of each parameter follows:</p></ol>
536 <h5>quantize_info</h5>
537 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
540 <ol><p>the image.</p></ol>
542 <h5>affinity_image</h5>
543 <ol><p>the reference image.</p></ol>
546 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
547 _8c.html" target="source" name="AffinityImages">AffinityImages</a></h2>
548 <div class="doc-section">
550 <p>AffinityImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
552 <p>Deprecated, replace with:</p>
555 RemapImages(quantize_info,images,affinity_image);
558 <p>The format of the AffinityImage method is:</p>
561 MagickBooleanType AffinityImages(const QuantizeInfo *quantize_info,
562 Image *images,Image *affinity_image)
565 <p>A description of each parameter follows:</p></ol>
567 <h5>quantize_info</h5>
568 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
571 <ol><p>the image sequence.</p></ol>
573 <h5>affinity_image</h5>
574 <ol><p>the reference image.</p></ol>
577 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
578 _8c.html" target="source" name="AllocateImage">AllocateImage</a></h2>
579 <div class="doc-section">
581 <p>AllocateImage() returns a pointer to an image structure initialized to default values.</p></ol>
583 <p>Deprecated, replace with:</p>
586 AcquireImage(image_info);
589 <p>The format of the AllocateImage method is:</p>
592 Image *AllocateImage(const ImageInfo *image_info)
595 <p>A description of each parameter follows:</p></ol>
598 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
601 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
602 _8c.html" target="source" name="AllocateImageColormap">AllocateImageColormap</a></h2>
603 <div class="doc-section">
605 <p>AllocateImageColormap() allocates an image colormap and initializes it to a linear gray colorspace. If the image already has a colormap, it is replaced. AllocateImageColormap() returns MagickTrue if successful, otherwise MagickFalse if there is not enough memory.</p></ol>
607 <p>Deprecated, replace with:</p>
610 AcquireImageColormap(image,colors);
613 <p>The format of the AllocateImageColormap method is:</p>
616 MagickBooleanType AllocateImageColormap(Image *image,
620 <p>A description of each parameter follows:</p></ol>
623 <ol><p>the image.</p></ol>
626 <ol><p>the number of colors in the image colormap.</p></ol>
629 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
630 _8c.html" target="source" name="AllocateNextImage">AllocateNextImage</a></h2>
631 <div class="doc-section">
633 <p>AllocateNextImage() initializes the next image in a sequence to default values. The next member of image points to the newly allocated image. If there is a memory shortage, next is assigned NULL.</p></ol>
635 <p>Deprecated, replace with:</p>
638 AcquireNextImage(image_info,image);
641 <p>The format of the AllocateNextImage method is:</p>
644 void AllocateNextImage(const ImageInfo *image_info,Image *image)
647 <p>A description of each parameter follows:</p></ol>
650 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
653 <ol><p>the image.</p></ol>
656 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
657 _8c.html" target="source" name="AllocateString">AllocateString</a></h2>
658 <div class="doc-section">
660 <p>AllocateString() allocates memory for a string and copies the source string to that memory location (and returns it).</p></ol>
662 <p>The format of the AllocateString method is:</p>
665 char *AllocateString(const char *source)
668 <p>A description of each parameter follows:</p></ol>
671 <ol><p>A character string.</p></ol>
674 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
675 _8c.html" target="source" name="AverageImages">AverageImages</a></h2>
676 <div class="doc-section">
678 <p>AverageImages() takes a set of images and averages them together. Each image in the set must have the same width and height. AverageImages() returns a single image with each corresponding pixel component of each image averaged. On failure, a NULL image is returned and exception describes the reason for the failure.</p></ol>
680 <p>Deprecated, replace with:</p>
683 EvaluateImages(images,MeanEvaluateOperator,exception);
686 <p>The format of the AverageImages method is:</p>
689 Image *AverageImages(Image *images,ExceptionInfo *exception)
692 <p>A description of each parameter follows:</p></ol>
695 <ol><p>the image sequence.</p></ol>
698 <ol><p>return any errors or warnings in this structure.</p></ol>
701 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
702 _8c.html" target="source" name="ChannelThresholdImage">ChannelThresholdImage</a></h2>
703 <div class="doc-section">
705 <p>ChannelThresholdImage() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p></ol>
707 <p>The format of the ChannelThresholdImage method is:</p>
710 unsigned int ChannelThresholdImage(Image *image,const char *level)
713 <p>A description of each parameter follows:</p></ol>
716 <ol><p>the image.</p></ol>
719 <ol><p>define the threshold values.</p></ol>
722 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
723 _8c.html" target="source" name="ClipPathImage">ClipPathImage</a></h2>
724 <div class="doc-section">
726 <p>ClipPathImage() sets the image clip mask based any clipping path information if it exists.</p></ol>
728 <p>Deprecated, replace with:</p>
731 ClipImagePath(image,pathname,inside);
734 <p>The format of the ClipImage method is:</p>
737 MagickBooleanType ClipPathImage(Image *image,const char *pathname,
738 const MagickBooleanType inside)
741 <p>A description of each parameter follows:</p></ol>
744 <ol><p>the image.</p></ol>
747 <ol><p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p></ol>
750 <ol><p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p></ol>
753 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
754 _8c.html" target="source" name="CloneImageAttributes">CloneImageAttributes</a></h2>
755 <div class="doc-section">
757 <p>CloneImageAttributes() clones one or more image attributes.</p></ol>
759 <p>Deprecated, replace with:</p>
762 CloneImageProperties(image,clone_image);
765 <p>The format of the CloneImageAttributes method is:</p>
768 MagickBooleanType CloneImageAttributes(Image *image,
769 const Image *clone_image)
772 <p>A description of each parameter follows:</p></ol>
775 <ol><p>the image.</p></ol>
778 <ol><p>the clone image.</p></ol>
781 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
782 _8c.html" target="source" name="CloneMemory">CloneMemory</a></h2>
783 <div class="doc-section">
785 <p>CloneMemory() copies size bytes from memory area source to the destination. Copying between objects that overlap will take place correctly. It returns destination.</p></ol>
787 <p>The format of the CloneMemory method is:</p>
790 void *CloneMemory(void *destination,const void *source,
794 <p>A description of each parameter follows:</p></ol>
797 <ol><p>the destination.</p></ol>
800 <ol><p>the source.</p></ol>
803 <ol><p>the size of the memory in bytes to allocate.</p></ol>
806 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
807 _8c.html" target="source" name="CloseCacheView">CloseCacheView</a></h2>
808 <div class="doc-section">
810 <p>CloseCacheView() closes the specified view returned by a previous call to OpenCacheView().</p></ol>
812 <p>Deprecated, replace with:</p>
815 DestroyCacheView(view_info);
818 <p>The format of the CloseCacheView method is:</p>
821 CacheView *CloseCacheView(CacheView *view_info)
824 <p>A description of each parameter follows:</p></ol>
827 <ol><p>the address of a structure of type CacheView.</p></ol>
830 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
831 _8c.html" target="source" name="ColorFloodfill">ColorFloodfill</a></h2>
832 <div class="doc-section">
834 <p>ColorFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
836 <p>By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.</p></ol>
838 <p>The format of the ColorFloodfillImage method is:</p>
841 MagickBooleanType ColorFloodfillImage(Image *image,
842 const DrawInfo *draw_info,const PixelPacket target,
843 const ssize_t x_offset,const ssize_t y_offset,const PaintMethod method)
846 <p>A description of each parameter follows:</p></ol>
849 <ol><p>the image.</p></ol>
852 <ol><p>the draw info.</p></ol>
855 <ol><p>the RGB value of the target color.</p></ol>
858 <ol><p>the starting location of the operation.</p></ol>
861 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
864 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
865 _8c.html" target="source" name="DeleteImageAttribute">DeleteImageAttribute</a></h2>
866 <div class="doc-section">
868 <p>DeleteImageAttribute() deletes an attribute from the image.</p></ol>
870 <p>Deprecated, replace with:</p>
873 DeleteImageProperty(image,key);
876 <p>The format of the DeleteImageAttribute method is:</p>
879 MagickBooleanType DeleteImageAttribute(Image *image,const char *key)
882 <p>A description of each parameter follows:</p></ol>
885 <ol><p>the image info.</p></ol>
888 <ol><p>the image key.</p></ol>
891 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
892 _8c.html" target="source" name="DeleteImageList">DeleteImageList</a></h2>
893 <div class="doc-section">
895 <p>DeleteImageList() deletes an image at the specified position in the list.</p></ol>
897 <p>The format of the DeleteImageList method is:</p>
900 unsigned int DeleteImageList(Image *images,const ssize_t offset)
903 <p>A description of each parameter follows:</p></ol>
906 <ol><p>the image list.</p></ol>
909 <ol><p>the position within the list.</p></ol>
912 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
913 _8c.html" target="source" name="DeleteMagickRegistry">DeleteMagickRegistry</a></h2>
914 <div class="doc-section">
916 <p>DeleteMagickRegistry() deletes an entry in the registry as defined by the id. It returns MagickTrue if the entry is deleted otherwise MagickFalse if no entry is found in the registry that matches the id.</p></ol>
918 <p>Deprecated, replace with:</p>
921 char key[MaxTextExtent];
922 FormatMagickString(key,MaxTextExtent,"ld\n",id);
923 DeleteImageRegistry(key);
926 <p>The format of the DeleteMagickRegistry method is:</p>
929 MagickBooleanType DeleteMagickRegistry(const ssize_t id)
932 <p>A description of each parameter follows:</p></ol>
935 <ol><p>the registry id.</p></ol>
938 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
939 _8c.html" target="source" name="DescribeImage">DescribeImage</a></h2>
940 <div class="doc-section">
942 <p>DescribeImage() describes an image by printing its attributes to the file. Attributes include the image width, height, size, and others.</p></ol>
944 <p>Deprecated, replace with:</p>
947 IdentifyImage(image,file,verbose);
950 <p>The format of the DescribeImage method is:</p>
953 MagickBooleanType DescribeImage(Image *image,FILE *file,
954 const MagickBooleanType verbose)
957 <p>A description of each parameter follows:</p></ol>
960 <ol><p>the image.</p></ol>
963 <ol><p>the file, typically stdout.</p></ol>
966 <ol><p>A value other than zero prints more detailed information about the image.</p></ol>
969 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
970 _8c.html" target="source" name="DestroyImageAttributes">DestroyImageAttributes</a></h2>
971 <div class="doc-section">
973 <p>DestroyImageAttributes() deallocates memory associated with the image attribute list.</p></ol>
975 <p>The format of the DestroyImageAttributes method is:</p>
978 DestroyImageAttributes(Image *image)
981 <p>A description of each parameter follows:</p></ol>
984 <ol><p>the image.</p></ol>
987 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
988 _8c.html" target="source" name="DestroyImages">DestroyImages</a></h2>
989 <div class="doc-section">
991 <p>DestroyImages() destroys an image list.</p></ol>
993 <p>Deprecated, replace with:</p>
996 DestroyImageList(image);
999 <p>The format of the DestroyImages method is:</p>
1002 void DestroyImages(Image *image)
1005 <p>A description of each parameter follows:</p></ol>
1008 <ol><p>the image sequence.</p></ol>
1011 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1012 _8c.html" target="source" name="DestroyMagick">DestroyMagick</a></h2>
1013 <div class="doc-section">
1015 <p>DestroyMagick() destroys the ImageMagick environment.</p></ol>
1017 <p>Deprecated, replace with:</p>
1020 MagickCoreTerminus();
1023 <p>The format of the DestroyMagick function is:</p>
1030 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1031 _8c.html" target="source" name="DispatchImage">DispatchImage</a></h2>
1032 <div class="doc-section">
1034 <p>DispatchImage() extracts pixel data from an image and returns it to you. The method returns MagickFalse on success otherwise MagickTrue if an error is encountered. The data is returned as char, short int, int, ssize_t, float, or double in the order specified by map.</p></ol>
1036 <p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
1039 DispatchImage(image,0,0,640,1,"RGB",CharPixel,pixels,exception);
1042 <p>Deprecated, replace with:</p>
1045 ExportImagePixels(image,x_offset,y_offset,columns,rows,map,type,pixels,
1049 <p>The format of the DispatchImage method is:</p>
1052 unsigned int DispatchImage(const Image *image,const ssize_t x_offset,
1053 const ssize_t y_offset,const size_t columns,
1054 const size_t rows,const char *map,const StorageType type,
1055 void *pixels,ExceptionInfo *exception)
1058 <p>A description of each parameter follows:</p></ol>
1061 <ol><p>the image.</p></ol>
1063 <h5>x_offset, y_offset, columns, rows</h5>
1064 <ol><p>These values define the perimeter of a region of pixels you want to extract.</p></ol>
1067 <ol><p>This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha, C = cyan, Y = yellow, M = magenta, K = black, or I = intensity (for grayscale).</p></ol>
1070 <ol><p>Define the data type of the pixels. Float and double types are normalized to [0..1] otherwise [0..QuantumRange]. Choose from these types: CharPixel, ShortPixel, IntegerPixel, LongPixel, FloatPixel, or DoublePixel.</p></ol>
1073 <ol><p>This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type.</p></ol>
1076 <ol><p>return any errors or warnings in this structure.</p></ol>
1079 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1080 _8c.html" target="source" name="ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a></h2>
1081 <div class="doc-section">
1083 <p>ExtractSubimageFromImageImage() extracts a region of the image that most closely resembles the reference.</p></ol>
1085 <p>The format of the ExtractSubimageFromImageImage method is:</p>
1088 Image *ExtractSubimageFromImage(const Image *image,
1089 const Image *reference,ExceptionInfo *exception)
1092 <p>A description of each parameter follows:</p></ol>
1095 <ol><p>the image.</p></ol>
1098 <ol><p>find an area of the image that closely resembles this image.</p></ol>
1101 <ol><p>return any errors or warnings in this structure.</p></ol>
1104 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1105 _8c.html" target="source" name="FlattenImages">FlattenImages</a></h2>
1106 <div class="doc-section">
1108 <p>FlattenImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
1110 <p>Deprecated, replace with:</p>
1113 MergeImageLayers(image,FlattenLayer,exception);
1116 <p>The format of the FlattenImage method is:</p>
1119 Image *FlattenImage(Image *image,ExceptionInfo *exception)
1122 <p>A description of each parameter follows:</p></ol>
1125 <ol><p>the image sequence.</p></ol>
1128 <ol><p>return any errors or warnings in this structure.</p></ol>
1131 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1132 _8c.html" target="source" name="FormatImageAttribute">FormatImageAttribute</a></h2>
1133 <div class="doc-section">
1135 <p>FormatImageAttribute() permits formatted key/value pairs to be saved as an image attribute.</p></ol>
1137 <p>The format of the FormatImageAttribute method is:</p>
1140 MagickBooleanType FormatImageAttribute(Image *image,const char *key,
1141 const char *format,...)
1144 <p>A description of each parameter follows.</p></ol>
1147 <ol><p>The image.</p></ol>
1150 <ol><p>The attribute key.</p></ol>
1153 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
1156 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1157 _8c.html" target="source" name="FormatString">FormatString</a></h2>
1158 <div class="doc-section">
1160 <p>FormatString() prints formatted output of a variable argument list.</p></ol>
1162 <p>The format of the FormatString method is:</p>
1165 void FormatString(char *string,const char *format,...)
1168 <p>A description of each parameter follows.</p></ol>
1171 <ol><p>Method FormatString returns the formatted string in this character buffer.</p></ol>
1174 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
1177 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1178 _8c.html" target="source" name="GetConfigureBlob">GetConfigureBlob</a></h2>
1179 <div class="doc-section">
1181 <p>GetConfigureBlob() returns the specified configure file as a blob.</p></ol>
1183 <p>The format of the GetConfigureBlob method is:</p>
1186 void *GetConfigureBlob(const char *filename,ExceptionInfo *exception)
1189 <p>A description of each parameter follows:</p></ol>
1192 <ol><p>the configure file name.</p></ol>
1195 <ol><p>return the full path information of the configure file.</p></ol>
1198 <ol><p>This pointer to a size_t integer sets the initial length of the blob. On return, it reflects the actual length of the blob.</p></ol>
1201 <ol><p>return any errors or warnings in this structure.</p></ol>
1204 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1205 _8c.html" target="source" name="GetCacheView">GetCacheView</a></h2>
1206 <div class="doc-section">
1208 <p>GetCacheView() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
1210 <p>Deprecated, replace with:</p>
1213 GetCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
1214 GetCacheViewException(cache_view));
1217 <p>The format of the GetCacheView method is:</p>
1220 PixelPacket *GetCacheView(CacheView *cache_view,const ssize_t x,
1221 const ssize_t y,const size_t columns,const size_t rows)
1224 <p>A description of each parameter follows:</p></ol>
1227 <ol><p>the address of a structure of type CacheView.</p></ol>
1229 <h5>x,y,columns,rows</h5>
1230 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1233 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1234 _8c.html" target="source" name="GetCacheViewIndexes">GetCacheViewIndexes</a></h2>
1235 <div class="doc-section">
1237 <p>GetCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
1239 <p>Deprecated, replace with:</p>
1242 GetCacheViewAuthenticIndexQueue(cache_view);
1245 <p>The format of the GetCacheViewIndexes method is:</p>
1248 IndexPacket *GetCacheViewIndexes(CacheView *cache_view)
1251 <p>A description of each parameter follows:</p></ol>
1254 <ol><p>the cache view.</p></ol>
1257 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1258 _8c.html" target="source" name="GetCacheViewPixels">GetCacheViewPixels</a></h2>
1259 <div class="doc-section">
1261 <p>GetCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
1263 <p>Deprecated, replace with:</p>
1266 GetCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
1267 GetCacheViewException(cache_view));
1270 <p>The format of the GetCacheViewPixels method is:</p>
1273 PixelPacket *GetCacheViewPixels(CacheView *cache_view,const ssize_t x,
1274 const ssize_t y,const size_t columns,const size_t rows)
1277 <p>A description of each parameter follows:</p></ol>
1280 <ol><p>the cache view.</p></ol>
1282 <h5>x,y,columns,rows</h5>
1283 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1286 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1287 _8c.html" target="source" name="GetImageAttribute">GetImageAttribute</a></h2>
1288 <div class="doc-section">
1290 <p>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL.</p></ol>
1292 <p>The format of the GetImageAttribute method is:</p>
1295 const ImageAttribute *GetImageAttribute(const Image *image,
1299 <p>A description of each parameter follows:</p></ol>
1302 <ol><p>the image.</p></ol>
1305 <ol><p>These character strings are the name of an image attribute to return.</p></ol>
1308 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1309 _8c.html" target="source" name="GetImageClippingPathAttribute">GetImageClippingPathAttribute</a></h2>
1310 <div class="doc-section">
1312 <p>GetImageClippingPathAttribute() searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</p></ol>
1314 <p>Deprecated, replace with:</p>
1317 GetImageAttribute(image,"8BIM:1999,2998");
1320 <p>The format of the GetImageClippingPathAttribute method is:</p>
1323 const ImageAttribute *GetImageClippingPathAttribute(Image *image)
1326 <p>A description of each parameter follows:</p></ol>
1329 <ol><p>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</p></ol>
1332 <ol><p>the image.</p></ol>
1335 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1336 _8c.html" target="source" name="GetImageFromMagickRegistry">GetImageFromMagickRegistry</a></h2>
1337 <div class="doc-section">
1339 <p>GetImageFromMagickRegistry() gets an image from the registry as defined by its name. If the image is not found, a NULL image is returned.</p></ol>
1341 <p>Deprecated, replace with:</p>
1344 GetImageRegistry(ImageRegistryType,name,exception);
1347 <p>The format of the GetImageFromMagickRegistry method is:</p>
1350 Image *GetImageFromMagickRegistry(const char *name,ssize_t *id,
1351 ExceptionInfo *exception)
1354 <p>A description of each parameter follows:</p></ol>
1357 <ol><p>the name of the image to retrieve from the registry.</p></ol>
1360 <ol><p>the registry id.</p></ol>
1363 <ol><p>return any errors or warnings in this structure.</p></ol>
1366 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1367 _8c.html" target="source" name="GetMagickRegistry">GetMagickRegistry</a></h2>
1368 <div class="doc-section">
1370 <p>GetMagickRegistry() gets a blob from the registry as defined by the id. If the blob that matches the id is not found, NULL is returned.</p></ol>
1372 <p>The format of the GetMagickRegistry method is:</p>
1375 const void *GetMagickRegistry(const ssize_t id,RegistryType *type,
1376 size_t *length,ExceptionInfo *exception)
1379 <p>A description of each parameter follows:</p></ol>
1382 <ol><p>the registry id.</p></ol>
1385 <ol><p>the registry type.</p></ol>
1388 <ol><p>the blob length in number of bytes.</p></ol>
1391 <ol><p>return any errors or warnings in this structure.</p></ol>
1394 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1395 _8c.html" target="source" name="GetImageGeometry">GetImageGeometry</a></h2>
1396 <div class="doc-section">
1398 <p>GetImageGeometry() returns a region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1400 <p>Deprecated, replace with:</p>
1403 if (size_to_fit != MagickFalse)
1404 ParseRegionGeometry(image,geometry,region_info,&image->exception); else
1405 ParsePageGeometry(image,geometry,region_info,&image->exception);
1408 <p>The format of the GetImageGeometry method is:</p>
1411 int GetImageGeometry(Image *image,const char *geometry,
1412 const unsigned int size_to_fit,RectangeInfo *region_info)
1415 <p>A description of each parameter follows:</p></ol>
1418 <ol><p>Method GetImageGeometry returns a bitmask that indicates which of the four values were located in the geometry string.</p></ol>
1421 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1423 <h5>size_to_fit</h5>
1424 <ol><p>A value other than 0 means to scale the region so it fits within the specified width and height.</p></ol>
1426 <h5>region_info</h5>
1427 <ol><p>the region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1430 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1431 _8c.html" target="source" name="GetImageList">GetImageList</a></h2>
1432 <div class="doc-section">
1434 <p>GetImageList() returns an image at the specified position in the list.</p></ol>
1436 <p>Deprecated, replace with:</p>
1439 CloneImage(GetImageFromList(images,(ssize_t) offset),0,0,MagickTrue,
1443 <p>The format of the GetImageList method is:</p>
1446 Image *GetImageList(const Image *images,const ssize_t offset,
1447 ExceptionInfo *exception)
1450 <p>A description of each parameter follows:</p></ol>
1453 <ol><p>the image list.</p></ol>
1456 <ol><p>the position within the list.</p></ol>
1459 <ol><p>return any errors or warnings in this structure.</p></ol>
1462 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1463 _8c.html" target="source" name="GetImageListIndex">GetImageListIndex</a></h2>
1464 <div class="doc-section">
1466 <p>GetImageListIndex() returns the position in the list of the specified image.</p></ol>
1468 <p>Deprecated, replace with:</p>
1471 GetImageIndexInList(images);
1474 <p>The format of the GetImageListIndex method is:</p>
1477 ssize_t GetImageListIndex(const Image *images)
1480 <p>A description of each parameter follows:</p></ol>
1483 <ol><p>the image list.</p></ol>
1486 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1487 _8c.html" target="source" name="GetImageListSize">GetImageListSize</a></h2>
1488 <div class="doc-section">
1490 <p>GetImageListSize() returns the number of images in the list.</p></ol>
1492 <p>Deprecated, replace with:</p>
1495 GetImageListLength(images);
1498 <p>The format of the GetImageListSize method is:</p>
1501 size_t GetImageListSize(const Image *images)
1504 <p>A description of each parameter follows:</p></ol>
1507 <ol><p>the image list.</p></ol>
1510 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1511 _8c.html" target="source" name="GetImagePixels">GetImagePixels</a></h2>
1512 <div class="doc-section">
1514 <p>GetImagePixels() obtains a pixel region for read/write access. If the region is successfully accessed, a pointer to a PixelPacket array representing the region is returned, otherwise NULL is returned.</p></ol>
1516 <p>The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected region is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
1518 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or if the storage class is PseduoClass, call GetAuthenticIndexQueue() after invoking GetImagePixels() to obtain the black color component or colormap indexes (of type IndexPacket) corresponding to the region. Once the PixelPacket (and/or IndexPacket) array has been updated, the changes must be saved back to the underlying image using SyncAuthenticPixels() or they may be lost.</p></ol>
1520 <p>Deprecated, replace with:</p>
1523 GetAuthenticPixels(image,x,y,columns,rows,&image->exception);
1526 <p>The format of the GetImagePixels() method is:</p>
1529 PixelPacket *GetImagePixels(Image *image,const ssize_t x,const ssize_t y,
1530 const size_t columns,const size_t rows)
1533 <p>A description of each parameter follows:</p></ol>
1536 <ol><p>the image.</p></ol>
1538 <h5>x,y,columns,rows</h5>
1539 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1542 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1543 _8c.html" target="source" name="GetIndexes">GetIndexes</a></h2>
1544 <div class="doc-section">
1546 <p>GetIndexes() returns the black channel or the colormap indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels(). NULL is returned if the black channel or colormap indexes are not available.</p></ol>
1548 <p>Deprecated, replace with:</p>
1551 GetAuthenticIndexQueue(image);
1554 <p>The format of the GetIndexes() method is:</p>
1557 IndexPacket *GetIndexes(const Image *image)
1560 <p>A description of each parameter follows:</p></ol>
1563 <ol><p>GetIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1566 <ol><p>the image.</p></ol>
1569 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1570 _8c.html" target="source" name="GetNextImage">GetNextImage</a></h2>
1571 <div class="doc-section">
1573 <p>GetNextImage() returns the next image in a list.</p></ol>
1575 <p>Deprecated, replace with:</p>
1578 GetNextImageInList(images);
1581 <p>The format of the GetNextImage method is:</p>
1584 Image *GetNextImage(const Image *images)
1587 <p>A description of each parameter follows:</p></ol>
1590 <ol><p>the image list.</p></ol>
1593 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1594 _8c.html" target="source" name="GetNextImageAttribute">GetNextImageAttribute</a></h2>
1595 <div class="doc-section">
1597 <p>GetNextImageAttribute() gets the next image attribute.</p></ol>
1599 <p>Deprecated, replace with:</p>
1602 const char *property;
1603 property=GetNextImageProperty(image);
1604 if (property != (const char *) NULL)
1605 GetImageAttribute(image,property);
1608 <p>The format of the GetNextImageAttribute method is:</p>
1611 const ImageAttribute *GetNextImageAttribute(const Image *image)
1614 <p>A description of each parameter follows:</p></ol>
1617 <ol><p>the image.</p></ol>
1620 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1621 _8c.html" target="source" name="GetNumberScenes">GetNumberScenes</a></h2>
1622 <div class="doc-section">
1624 <p>GetNumberScenes() returns the number of images in the list.</p></ol>
1626 <p>Deprecated, replace with:</p>
1629 GetImageListLength(image);
1632 <p>The format of the GetNumberScenes method is:</p>
1635 unsigned int GetNumberScenes(const Image *images)
1638 <p>A description of each parameter follows:</p></ol>
1641 <ol><p>the image list.</p></ol>
1644 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1645 _8c.html" target="source" name="GetOnePixel">GetOnePixel</a></h2>
1646 <div class="doc-section">
1648 <p>GetOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p></ol>
1650 <p>Deprecated, replace with:</p>
1653 GetOneAuthenticPixel(image,x,y,&pixel,&image->exception);
1656 <p>The format of the GetOnePixel() method is:</p>
1659 PixelPacket GetOnePixel(const Image image,const ssize_t x,const ssize_t y)
1662 <p>A description of each parameter follows:</p></ol>
1665 <ol><p>the image.</p></ol>
1668 <ol><p>These values define the location of the pixel to return.</p></ol>
1671 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1672 _8c.html" target="source" name="GetPixels">GetPixels</a></h2>
1673 <div class="doc-section">
1675 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1677 <p>Deprecated, replace with:</p>
1680 GetAuthenticPixelQueue(image);
1683 <p>The format of the GetPixels() method is:</p>
1686 PixelPacket *GetPixels(const Image image)
1689 <p>A description of each parameter follows:</p></ol>
1692 <ol><p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1695 <ol><p>the image.</p></ol>
1698 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1699 _8c.html" target="source" name="GetPreviousImage">GetPreviousImage</a></h2>
1700 <div class="doc-section">
1702 <p>GetPreviousImage() returns the previous image in a list.</p></ol>
1704 <p>Deprecated, replace with:</p>
1707 GetPreviousImageInList(images));
1710 <p>The format of the GetPreviousImage method is:</p>
1713 Image *GetPreviousImage(const Image *images)
1716 <p>A description of each parameter follows:</p></ol>
1719 <ol><p>the image list.</p></ol>
1722 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1723 _8c.html" target="source" name="HSLTransform">HSLTransform</a></h2>
1724 <div class="doc-section">
1726 <p>HSLTransform() converts a (hue, saturation, lightness) to a (red, green, blue) triple.</p></ol>
1728 <p>The format of the HSLTransformImage method is:</p>
1731 void HSLTransform(const double hue,const double saturation,
1732 const double lightness,Quantum *red,Quantum *green,Quantum *blue)
1735 <p>A description of each parameter follows:</p></ol>
1737 <h5>hue, saturation, lightness</h5>
1738 <ol><p>A double value representing a component of the HSL color space.</p></ol>
1740 <h5>red, green, blue</h5>
1741 <ol><p>A pointer to a pixel component of type Quantum.</p></ol>
1744 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1745 _8c.html" target="source" name="IdentityAffine">IdentityAffine</a></h2>
1746 <div class="doc-section">
1748 <p>IdentityAffine() initializes the affine transform to the identity matrix.</p></ol>
1750 <p>The format of the IdentityAffine method is:</p>
1753 IdentityAffine(AffineMatrix *affine)
1756 <p>A description of each parameter follows:</p></ol>
1759 <ol><p>A pointer the affine transform of type AffineMatrix.</p></ol>
1762 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1763 _8c.html" target="source" name="InitializeMagick">InitializeMagick</a></h2>
1764 <div class="doc-section">
1766 <p>InitializeMagick() initializes the ImageMagick environment.</p></ol>
1768 <p>Deprecated, replace with:</p>
1771 MagickCoreGenesis(path,MagickFalse);
1774 <p>The format of the InitializeMagick function is:</p>
1777 InitializeMagick(const char *path)
1780 <p>A description of each parameter follows:</p></ol>
1783 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1786 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1787 _8c.html" target="source" name="InterpolatePixelColor">InterpolatePixelColor</a></h2>
1788 <div class="doc-section">
1790 <p>InterpolatePixelColor() applies bi-linear or tri-linear interpolation between a pixel and it's neighbors.</p></ol>
1792 <p>The format of the InterpolatePixelColor method is:</p>
1795 MagickPixelPacket InterpolatePixelColor(const Image *image,
1796 CacheView *view_info,InterpolatePixelMethod method,const double x,
1797 const double y,ExceptionInfo *exception)
1800 <p>A description of each parameter follows:</p></ol>
1803 <ol><p>the image.</p></ol>
1806 <ol><p>the image cache view.</p></ol>
1809 <ol><p>the type of pixel color interpolation.</p></ol>
1812 <ol><p>A double representing the current (x,y) position of the pixel.</p></ol>
1815 <ol><p>return any errors or warnings in this structure.</p></ol>
1818 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1819 _8c.html" target="source" name="InterpretImageAttributes">InterpretImageAttributes</a></h2>
1820 <div class="doc-section">
1822 <p>InterpretImageAttributes() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
1824 <p>Deprecated, replace with:</p>
1827 InterpretImageProperties(image_info,image,embed_text);
1830 <p>The format of the InterpretImageAttributes method is:</p>
1833 char *InterpretImageAttributes(const ImageInfo *image_info,Image *image,
1834 const char *embed_text)
1837 <p>A description of each parameter follows:</p></ol>
1840 <ol><p>the image info.</p></ol>
1843 <ol><p>the image.</p></ol>
1846 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
1849 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1850 _8c.html" target="source" name="LevelImageColor">LevelImageColor</a></h2>
1851 <div class="doc-section">
1853 <p>LevelImageColor() will map the given color to "black" and "white" values, limearly spreading out the colors, and level values on a channel by channel bases, as per LevelImage(). The given colors allows you to specify different level ranges for each of the color channels seperatally.</p></ol>
1855 <p>If the boolean 'invert' is set true the image values will modifyed in the reverse direction. That is any existing "black" and "white" colors in the image will become the color values given, with all other values compressed appropriatally. This effectivally maps a greyscale gradient into the given color gradient.</p></ol>
1857 <p>Deprecated, replace with:</p>
1860 LevelColorsImageChannel(image,channel,black_color,white_color,invert);
1863 <p>The format of the LevelImageColors method is:</p>
1866 MagickBooleanType LevelImageColors(Image *image,const ChannelType channel,
1867 const MagickPixelPacket *black_color,const MagickPixelPacket *white_color,
1868 const MagickBooleanType invert)
1871 <p>A description of each parameter follows:</p></ol>
1874 <ol><p>the image.</p></ol>
1877 <ol><p>the channel.</p></ol>
1879 <h5>black_color</h5>
1880 <ol><p>The color to map black to/from</p></ol>
1882 <h5>white_point</h5>
1883 <ol><p>The color to map white to/from</p></ol>
1886 <ol><p>if true map the colors (levelize), rather than from (level)</p></ol>
1889 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1890 _8c.html" target="source" name="LiberateMemory">LiberateMemory</a></h2>
1891 <div class="doc-section">
1893 <p>LiberateMemory() frees memory that has already been allocated, and NULL's the pointer to it.</p></ol>
1895 <p>The format of the LiberateMemory method is:</p>
1898 void LiberateMemory(void **memory)
1901 <p>A description of each parameter follows:</p></ol>
1904 <ol><p>A pointer to a block of memory to free for reuse.</p></ol>
1907 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1908 _8c.html" target="source" name="LiberateSemaphoreInfo">LiberateSemaphoreInfo</a></h2>
1909 <div class="doc-section">
1911 <p>LiberateSemaphoreInfo() relinquishes a semaphore.</p></ol>
1913 <p>Deprecated, replace with:</p>
1916 UnlockSemaphoreInfo(*semaphore_info);
1919 <p>The format of the LiberateSemaphoreInfo method is:</p>
1922 LiberateSemaphoreInfo(void **semaphore_info)
1925 <p>A description of each parameter follows:</p></ol>
1927 <h5>semaphore_info</h5>
1928 <ol><p>Specifies a pointer to an SemaphoreInfo structure.</p></ol>
1931 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1932 _8c.html" target="source" name="MagickIncarnate">MagickIncarnate</a></h2>
1933 <div class="doc-section">
1935 <p>MagickIncarnate() initializes the ImageMagick environment.</p></ol>
1937 <p>Deprecated, replace with:</p>
1940 MagickCoreGenesis(path,MagickFalse);
1943 <p>The format of the MagickIncarnate function is:</p>
1946 MagickIncarnate(const char *path)
1949 <p>A description of each parameter follows:</p></ol>
1952 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1955 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1956 _8c.html" target="source" name="MagickMonitor">MagickMonitor</a></h2>
1957 <div class="doc-section">
1959 <p>MagickMonitor() calls the monitor handler method with a text string that describes the task and a measure of completion. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered, e.g. if there was a user interrupt.</p></ol>
1961 <p>The format of the MagickMonitor method is:</p>
1964 MagickBooleanType MagickMonitor(const char *text,
1965 const MagickOffsetType offset,const MagickSizeType span,
1969 <p>A description of each parameter follows:</p></ol>
1972 <ol><p>the position relative to the span parameter which represents how much progress has been made toward completing a task.</p></ol>
1975 <ol><p>the span relative to completing a task.</p></ol>
1977 <h5>client_data</h5>
1978 <ol><p>the client data.</p></ol>
1981 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1982 _8c.html" target="source" name="MapImage">MapImage</a></h2>
1983 <div class="doc-section">
1985 <p>MapImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
1987 <p>Deprecated, replace with:</p>
1990 QuantizeInfo quantize_info;
1991 GetQuantizeInfo(&quantize_info);
1992 quantize_info.dither=dither;
1993 RemapImage(&quantize_info,image,map_image);
1996 <p>The format of the MapImage method is:</p>
1999 MagickBooleanType MapImage(Image *image,const Image *map_image,
2000 const MagickBooleanType dither)
2003 <p>A description of each parameter follows:</p></ol>
2006 <ol><p>Specifies a pointer to an Image structure.</p></ol>
2009 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
2012 <ol><p>Set this integer value to something other than zero to dither the mapped image.</p></ol>
2015 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2016 _8c.html" target="source" name="MapImages">MapImages</a></h2>
2017 <div class="doc-section">
2019 <p>MapImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
2021 <p>Deprecated, replace with:</p>
2024 QuantizeInfo quantize_info;
2025 GetQuantizeInfo(&quantize_info);
2026 quantize_info.dither=dither;
2027 RemapImages(&quantize_info,images,map_image);
2030 <p>The format of the MapImage method is:</p>
2033 MagickBooleanType MapImages(Image *images,Image *map_image,
2034 const MagickBooleanType dither)
2037 <p>A description of each parameter follows:</p></ol>
2040 <ol><p>Specifies a pointer to a set of Image structures.</p></ol>
2043 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
2046 <ol><p>Set this integer value to something other than zero to dither the quantized image.</p></ol>
2049 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2050 _8c.html" target="source" name="MatteFloodfill">MatteFloodfill</a></h2>
2051 <div class="doc-section">
2053 <p>MatteFloodfill() changes the transparency value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the transparency value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
2055 <p>By default target must match a particular pixel transparency exactly. However, in many cases two transparency values may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two transparency values as the same. For example, set fuzz to 10 and the opacity values of 100 and 102 respectively are now interpreted as the same value for the purposes of the floodfill.</p></ol>
2057 <p>The format of the MatteFloodfillImage method is:</p>
2060 MagickBooleanType MatteFloodfillImage(Image *image,
2061 const PixelPacket target,const Quantum opacity,const ssize_t x_offset,
2062 const ssize_t y_offset,const PaintMethod method)
2065 <p>A description of each parameter follows:</p></ol>
2068 <ol><p>the image.</p></ol>
2071 <ol><p>the RGB value of the target color.</p></ol>
2074 <ol><p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p></ol>
2077 <ol><p>the starting location of the operation.</p></ol>
2080 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
2083 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2084 _8c.html" target="source" name="MaximumImages">MaximumImages</a></h2>
2085 <div class="doc-section">
2087 <p>MaximumImages() returns the maximum intensity of an image sequence.</p></ol>
2089 <p>Deprecated, replace with:</p>
2092 EvaluateImages(images,MinEvaluateOperator,exception);
2095 <p>The format of the MaxImages method is:</p>
2098 Image *MaximumImages(Image *images,ExceptionInfo *exception)
2101 <p>A description of each parameter follows:</p></ol>
2104 <ol><p>the image sequence.</p></ol>
2107 <ol><p>return any errors or warnings in this structure.</p></ol>
2110 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2111 _8c.html" target="source" name="MinimumImages">MinimumImages</a></h2>
2112 <div class="doc-section">
2114 <p>MinimumImages() returns the minimum intensity of an image sequence.</p></ol>
2116 <p>Deprecated, replace with:</p>
2119 EvaluateImages(images,MinEvaluateOperator,exception);
2122 <p>The format of the MinimumImages method is:</p>
2125 Image *MinimumImages(Image *images,ExceptionInfo *exception)
2128 <p>A description of each parameter follows:</p></ol>
2131 <ol><p>the image sequence.</p></ol>
2134 <ol><p>return any errors or warnings in this structure.</p></ol>
2137 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2138 _8c.html" target="source" name="MosaicImages">MosaicImages</a></h2>
2139 <div class="doc-section">
2141 <p>MosaicImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
2143 <p>Deprecated, replace with:</p>
2146 MergeImageLayers(image,MosaicLayer,exception);
2149 <p>The format of the MosaicImage method is:</p>
2152 Image *MosaicImages(const Image *image,ExceptionInfo *exception)
2155 <p>A description of each parameter follows:</p></ol>
2158 <ol><p>the image list to be composited together</p></ol>
2161 <ol><p>return any errors or warnings in this structure.</p></ol>
2164 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2165 _8c.html" target="source" name="OpaqueImage">OpaqueImage</a></h2>
2166 <div class="doc-section">
2168 <p>OpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
2170 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
2172 <p>The format of the OpaqueImage method is:</p>
2175 MagickBooleanType OpaqueImage(Image *image,
2176 const PixelPacket *target,const PixelPacket fill)
2179 <p>A description of each parameter follows:</p></ol>
2182 <ol><p>the image.</p></ol>
2185 <ol><p>the RGB value of the target color.</p></ol>
2188 <ol><p>the replacement color.</p></ol>
2191 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2192 _8c.html" target="source" name="OpenCacheView">OpenCacheView</a></h2>
2193 <div class="doc-section">
2195 <p>OpenCacheView() opens a view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself.</p></ol>
2197 <p>Deprecated, replace with:</p>
2200 AcquireCacheView(image);
2203 <p>The format of the OpenCacheView method is:</p>
2206 CacheView *OpenCacheView(const Image *image)
2209 <p>A description of each parameter follows:</p></ol>
2212 <ol><p>the image.</p></ol>
2215 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2216 _8c.html" target="source" name="PaintFloodfill">PaintFloodfill</a></h2>
2217 <div class="doc-section">
2219 <p>PaintFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
2221 <p>By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.</p></ol>
2223 <p>Deprecated, replace with:</p>
2226 FloodfillPaintImage(image,channel,draw_info,target,x,y,
2227 method == FloodfillMethod ? MagickFalse : MagickTrue);
2230 <p>The format of the PaintFloodfillImage method is:</p>
2233 MagickBooleanType PaintFloodfillImage(Image *image,
2234 const ChannelType channel,const MagickPixelPacket target,const ssize_t x,
2235 const ssize_t y,const DrawInfo *draw_info,const PaintMethod method)
2238 <p>A description of each parameter follows:</p></ol>
2241 <ol><p>the image.</p></ol>
2244 <ol><p>the channel(s).</p></ol>
2247 <ol><p>the RGB value of the target color.</p></ol>
2250 <ol><p>the starting location of the operation.</p></ol>
2253 <ol><p>the draw info.</p></ol>
2256 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
2259 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2260 _8c.html" target="source" name="PaintOpaqueImage">PaintOpaqueImage</a></h2>
2261 <div class="doc-section">
2263 <p>PaintOpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
2265 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
2267 <p>Deprecated, replace with:</p>
2270 OpaquePaintImageChannel(image,DefaultChannels,target,fill,MagickFalse);
2271 OpaquePaintImageChannel(image,channel,target,fill,MagickFalse);
2274 <p>The format of the PaintOpaqueImage method is:</p>
2277 MagickBooleanType PaintOpaqueImage(Image *image,
2278 const PixelPacket *target,const PixelPacket *fill)
2279 MagickBooleanType PaintOpaqueImageChannel(Image *image,
2280 const ChannelType channel,const PixelPacket *target,
2281 const PixelPacket *fill)
2284 <p>A description of each parameter follows:</p></ol>
2287 <ol><p>the image.</p></ol>
2290 <ol><p>the channel(s).</p></ol>
2293 <ol><p>the RGB value of the target color.</p></ol>
2296 <ol><p>the replacement color.</p></ol>
2299 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2300 _8c.html" target="source" name="PaintTransparentImage">PaintTransparentImage</a></h2>
2301 <div class="doc-section">
2303 <p>PaintTransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
2305 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
2307 <p>Deprecated, replace with:</p>
2310 TransparentPaintImage(image,target,opacity,MagickFalse);
2313 <p>The format of the PaintTransparentImage method is:</p>
2316 MagickBooleanType PaintTransparentImage(Image *image,
2317 const MagickPixelPacket *target,const Quantum opacity)
2320 <p>A description of each parameter follows:</p></ol>
2323 <ol><p>the image.</p></ol>
2326 <ol><p>the RGB value of the target color.</p></ol>
2329 <ol><p>the replacement opacity value.</p></ol>
2332 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2333 _8c.html" target="source" name="ParseSizeGeometry">ParseSizeGeometry</a></h2>
2334 <div class="doc-section">
2336 <p>ParseSizeGeometry() returns a region as defined by the geometry string with respect to the image dimensions and aspect ratio.</p></ol>
2338 <p>Deprecated, replace with:</p>
2341 ParseMetaGeometry(geometry,®ion_info->x,®ion_info->y,
2342 ®ion_info->width,®ion_info->height);
2345 <p>The format of the ParseSizeGeometry method is:</p>
2348 MagickStatusType ParseSizeGeometry(const Image *image,
2349 const char *geometry,RectangeInfo *region_info)
2352 <p>A description of each parameter follows:</p></ol>
2355 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
2357 <h5>region_info</h5>
2358 <ol><p>the region as defined by the geometry string.</p></ol>
2361 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2362 _8c.html" target="source" name="PopImageList">PopImageList</a></h2>
2363 <div class="doc-section">
2365 <p>PopImageList() removes the last image in the list.</p></ol>
2367 <p>Deprecated, replace with:</p>
2370 RemoveLastImageFromList(images);
2373 <p>The format of the PopImageList method is:</p>
2376 Image *PopImageList(Image **images)
2379 <p>A description of each parameter follows:</p></ol>
2382 <ol><p>the image list.</p></ol>
2385 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2386 _8c.html" target="source" name="PopImagePixels">PopImagePixels</a></h2>
2387 <div class="doc-section">
2389 <p>PopImagePixels() transfers one or more pixel components from the image pixel cache to a user supplied buffer. The pixels are returned in network byte order. MagickTrue is returned if the pixels are successfully transferred, otherwise MagickFalse.</p></ol>
2391 <p>The format of the PopImagePixels method is:</p>
2394 size_t PopImagePixels(Image *,const QuantumType quantum,
2395 unsigned char *destination)
2398 <p>A description of each parameter follows:</p></ol>
2401 <ol><p>the image.</p></ol>
2404 <ol><p>Declare which pixel components to transfer (RGB, RGBA, etc).</p></ol>
2406 <h5>destination</h5>
2407 <ol><p>The components are transferred to this buffer.</p></ol>
2410 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2411 _8c.html" target="source" name="PostscriptGeometry">PostscriptGeometry</a></h2>
2412 <div class="doc-section">
2414 <p>PostscriptGeometry() replaces any page mneumonic with the equivalent size in picas.</p></ol>
2416 <p>Deprecated, replace with:</p>
2419 GetPageGeometry(page);
2422 <p>The format of the PostscriptGeometry method is:</p>
2425 char *PostscriptGeometry(const char *page)
2428 <p>A description of each parameter follows.</p></ol>
2431 <ol><p>Specifies a pointer to an array of characters. The string is either a Postscript page name (e.g. A4) or a postscript page geometry (e.g. 612x792+36+36).</p></ol>
2434 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2435 _8c.html" target="source" name="PushImageList">PushImageList</a></h2>
2436 <div class="doc-section">
2438 <p>PushImageList() adds an image to the end of the list.</p></ol>
2440 <p>Deprecated, replace with:</p>
2443 AppendImageToList(images,CloneImageList(image,exception));
2446 <p>The format of the PushImageList method is:</p>
2449 unsigned int PushImageList(Image *images,const Image *image,
2450 ExceptionInfo *exception)
2453 <p>A description of each parameter follows:</p></ol>
2456 <ol><p>the image list.</p></ol>
2459 <ol><p>the image.</p></ol>
2462 <ol><p>return any errors or warnings in this structure.</p></ol>
2465 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2466 _8c.html" target="source" name="PushImagePixels">PushImagePixels</a></h2>
2467 <div class="doc-section">
2469 <p>PushImagePixels() transfers one or more pixel components from a user supplied buffer into the image pixel cache of an image. The pixels are expected in network byte order. It returns MagickTrue if the pixels are successfully transferred, otherwise MagickFalse.</p></ol>
2471 <p>The format of the PushImagePixels method is:</p>
2474 size_t PushImagePixels(Image *image,const QuantumType quantum,
2475 const unsigned char *source)
2478 <p>A description of each parameter follows:</p></ol>
2481 <ol><p>the image.</p></ol>
2484 <ol><p>Declare which pixel components to transfer (red, green, blue, opacity, RGB, or RGBA).</p></ol>
2487 <ol><p>The pixel components are transferred from this buffer.</p></ol>
2490 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2491 _8c.html" target="source" name="QuantizationError">QuantizationError</a></h2>
2492 <div class="doc-section">
2494 <p>QuantizationError() measures the difference between the original and quantized images. This difference is the total quantization error. The error is computed by summing over all pixels in an image the distance squared in RGB space between each reference pixel value and its quantized value. These values are computed:</p>
2497 o mean_error_per_pixel: This value is the mean error for any single
2501 <h5>normalized_mean_square_error</h5>
2502 <ol><p>This value is the normalized mean quantization error for any single pixel in the image. This distance measure is normalized to a range between 0 and 1. It is independent of the range of red, green, and blue values in the image.</p></ol>
2504 <h5>normalized_maximum_square_error</h5>
2505 <ol><p>Thsi value is the normalized maximum quantization error for any single pixel in the image. This distance measure is normalized to a range between 0 and 1. It is independent of the range of red, green, and blue values in your image.</p></ol>
2507 <p>Deprecated, replace with:</p>
2510 GetImageQuantizeError(image);
2513 <p>The format of the QuantizationError method is:</p>
2516 unsigned int QuantizationError(Image *image)
2519 <p>A description of each parameter follows.</p></ol>
2522 <ol><p>Specifies a pointer to an Image structure; returned from ReadImage.</p></ol>
2525 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2526 _8c.html" target="source" name="RandomChannelThresholdImage">RandomChannelThresholdImage</a></h2>
2527 <div class="doc-section">
2529 <p>RandomChannelThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image.</p></ol>
2531 <p>The format of the RandomChannelThresholdImage method is:</p>
2534 unsigned int RandomChannelThresholdImage(Image *image,
2535 const char *channel, const char *thresholds,
2536 ExceptionInfo *exception)
2539 <p>A description of each parameter follows:</p></ol>
2542 <ol><p>the image.</p></ol>
2545 <ol><p>the channel or channels to be thresholded.</p></ol>
2548 <ol><p>a geometry string containing LOWxHIGH thresholds. If the string contains 2x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be performed instead.</p></ol>
2551 <ol><p>return any errors or warnings in this structure.</p></ol>
2554 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2555 _8c.html" target="source" name="ReacquireMemory">ReacquireMemory</a></h2>
2556 <div class="doc-section">
2558 <p>ReacquireMemory() changes the size of the memory and returns a pointer to the (possibly moved) block. The contents will be unchanged up to the lesser of the new and old sizes.</p></ol>
2560 <p>The format of the ReacquireMemory method is:</p>
2563 void ReacquireMemory(void **memory,const size_t size)
2566 <p>A description of each parameter follows:</p></ol>
2569 <ol><p>A pointer to a memory allocation. On return the pointer may change but the contents of the original allocation will not.</p></ol>
2572 <ol><p>the new size of the allocated memory.</p></ol>
2575 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2576 _8c.html" target="source" name="RecolorImage">RecolorImage</a></h2>
2577 <div class="doc-section">
2579 <p>RecolorImage() apply color transformation to an image. The 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></ol>
2581 <p>The format of the RecolorImage method is:</p>
2584 Image *RecolorImage(const Image *image,const size_t order,
2585 const double *color_matrix,ExceptionInfo *exception)
2588 <p>A description of each parameter follows:</p></ol>
2591 <ol><p>the image.</p></ol>
2594 <ol><p>the number of columns and rows in the recolor matrix.</p></ol>
2596 <h5>color_matrix</h5>
2597 <ol><p>An array of double representing the recolor matrix.</p></ol>
2600 <ol><p>return any errors or warnings in this structure.</p></ol>
2603 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2604 _8c.html" target="source" name="ResetImageAttributeIterator">ResetImageAttributeIterator</a></h2>
2605 <div class="doc-section">
2607 <p>ResetImageAttributeIterator() resets the image attributes iterator. Use it in conjunction with GetNextImageAttribute() to iterate over all the values associated with an image.</p></ol>
2609 <p>Deprecated, replace with:</p>
2612 ResetImagePropertyIterator(image);
2615 <p>The format of the ResetImageAttributeIterator method is:</p>
2618 ResetImageAttributeIterator(const ImageInfo *image)
2621 <p>A description of each parameter follows:</p></ol>
2624 <ol><p>the image.</p></ol>
2627 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2628 _8c.html" target="source" name="SetCacheViewPixels">SetCacheViewPixels</a></h2>
2629 <div class="doc-section">
2631 <p>SetCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
2633 <p>Deprecated, replace with:</p>
2636 QueueCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
2637 GetCacheViewException(cache_view));
2640 <p>The format of the SetCacheViewPixels method is:</p>
2643 PixelPacket *SetCacheViewPixels(CacheView *cache_view,const ssize_t x,
2644 const ssize_t y,const size_t columns,const size_t rows)
2647 <p>A description of each parameter follows:</p></ol>
2650 <ol><p>the cache view.</p></ol>
2652 <h5>x,y,columns,rows</h5>
2653 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2656 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2657 _8c.html" target="source" name="SetExceptionInfo">SetExceptionInfo</a></h2>
2658 <div class="doc-section">
2660 <p>SetExceptionInfo() sets the exception severity.</p></ol>
2662 <p>The format of the SetExceptionInfo method is:</p>
2665 MagickBooleanType SetExceptionInfo(ExceptionInfo *exception,
2666 ExceptionType severity)
2669 <p>A description of each parameter follows:</p></ol>
2672 <ol><p>the exception info.</p></ol>
2675 <ol><p>the exception severity.</p></ol>
2678 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2679 _8c.html" target="source" name="SetImage">SetImage</a></h2>
2680 <div class="doc-section">
2682 <p>SetImage() sets the red, green, and blue components of each pixel to the image background color and the opacity component to the specified level of transparency. The background color is defined by the background_color member of the image.</p></ol>
2684 <p>The format of the SetImage method is:</p>
2687 void SetImage(Image *image,const Quantum opacity)
2690 <p>A description of each parameter follows:</p></ol>
2693 <ol><p>the image.</p></ol>
2696 <ol><p>Set each pixel to this level of transparency.</p></ol>
2699 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2700 _8c.html" target="source" name="SetImageAttribute">SetImageAttribute</a></h2>
2701 <div class="doc-section">
2703 <p>SetImageAttribute() searches the list of image attributes and replaces the attribute value. If it is not found in the list, the attribute name and value is added to the list.</p></ol>
2705 <p>Deprecated, replace with:</p>
2708 SetImageProperty(image,key,value);
2711 <p>The format of the SetImageAttribute method is:</p>
2714 MagickBooleanType SetImageAttribute(Image *image,const char *key,
2718 <p>A description of each parameter follows:</p></ol>
2721 <ol><p>the image.</p></ol>
2724 <ol><p>the key.</p></ol>
2727 <ol><p>the value.</p></ol>
2730 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2731 _8c.html" target="source" name="SetImageList">SetImageList</a></h2>
2732 <div class="doc-section">
2734 <p>SetImageList() inserts an image into the list at the specified position.</p></ol>
2736 <p>The format of the SetImageList method is:</p>
2739 unsigned int SetImageList(Image *images,const Image *image,
2740 const ssize_t offset,ExceptionInfo *exception)
2743 <p>A description of each parameter follows:</p></ol>
2746 <ol><p>the image list.</p></ol>
2749 <ol><p>the image.</p></ol>
2752 <ol><p>the position within the list.</p></ol>
2755 <ol><p>return any errors or warnings in this structure.</p></ol>
2758 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2759 _8c.html" target="source" name="SetImagePixels">SetImagePixels</a></h2>
2760 <div class="doc-section">
2762 <p>SetImagePixels() queues a mutable pixel region. If the region is successfully intialized a pointer to a PixelPacket array representing the region is returned, otherwise NULL is returned. The returned pointer may point to a temporary working buffer for the pixels or it may point to the final location of the pixels in memory.</p></ol>
2764 <p>Write-only access means that any existing pixel values corresponding to the region are ignored. This useful while the initial image is being created from scratch, or if the existing pixel values are to be completely replaced without need to refer to their pre-existing values. The application is free to read and write the pixel buffer returned by SetImagePixels() any way it pleases. SetImagePixels() does not initialize the pixel array values. Initializing pixel array values is the application's responsibility.</p></ol>
2766 <p>Performance is maximized if the selected region is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
2768 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or the storage class is PseudoClass, call GetAuthenticIndexQueue() after invoking GetAuthenticPixels() to obtain the black color component or the colormap indexes (of type IndexPacket) corresponding to the region. Once the PixelPacket (and/or IndexPacket) array has been updated, the changes must be saved back to the underlying image using SyncAuthenticPixels() or they may be lost.</p></ol>
2770 <p>Deprecated, replace with:</p>
2773 QueueAuthenticPixels(image,x,y,columns,rows,&image->exception);
2776 <p>The format of the SetImagePixels() method is:</p>
2779 PixelPacket *SetImagePixels(Image *image,const ssize_t x,const ssize_t y,
2780 const size_t columns,const size_t rows)
2783 <p>A description of each parameter follows:</p></ol>
2786 <ol><p>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</p></ol>
2789 <ol><p>the image.</p></ol>
2791 <h5>x,y,columns,rows</h5>
2792 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2795 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2796 _8c.html" target="source" name="SetMagickRegistry">SetMagickRegistry</a></h2>
2797 <div class="doc-section">
2799 <p>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned.</p></ol>
2801 <p>The format of the SetMagickRegistry method is:</p>
2804 ssize_t SetMagickRegistry(const RegistryType type,const void *blob,
2805 const size_t length,ExceptionInfo *exception)
2808 <p>A description of each parameter follows:</p></ol>
2811 <ol><p>the registry type.</p></ol>
2814 <ol><p>the address of a Binary Large OBject.</p></ol>
2817 <ol><p>For a registry type of ImageRegistryType use sizeof(Image) otherise the blob length in number of bytes.</p></ol>
2820 <ol><p>return any errors or warnings in this structure.</p></ol>
2823 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2824 _8c.html" target="source" name="SetMonitorHandler">SetMonitorHandler</a></h2>
2825 <div class="doc-section">
2827 <p>SetMonitorHandler() sets the monitor handler to the specified method and returns the previous monitor handler.</p></ol>
2829 <p>The format of the SetMonitorHandler method is:</p>
2832 MonitorHandler SetMonitorHandler(MonitorHandler handler)
2835 <p>A description of each parameter follows:</p></ol>
2838 <ol><p>Specifies a pointer to a method to handle monitors.</p></ol>
2841 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2842 _8c.html" target="source" name="ShiftImageList">ShiftImageList</a></h2>
2843 <div class="doc-section">
2845 <p>ShiftImageList() removes an image from the beginning of the list.</p></ol>
2847 <p>Deprecated, replace with:</p>
2850 RemoveFirstImageFromList(images);
2853 <p>The format of the ShiftImageList method is:</p>
2856 Image *ShiftImageList(Image **images)
2859 <p>A description of each parameter follows:</p></ol>
2862 <ol><p>the image list.</p></ol>
2865 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2866 _8c.html" target="source" name="SpliceImageList">SpliceImageList</a></h2>
2867 <div class="doc-section">
2869 <p>SpliceImageList() removes the images designated by offset and length from the list and replaces them with the specified list.</p></ol>
2871 <p>The format of the SpliceImageList method is:</p>
2874 Image *SpliceImageList(Image *images,const ssize_t offset,
2875 const size_t length,const Image *splices,
2876 ExceptionInfo *exception)
2879 <p>A description of each parameter follows:</p></ol>
2882 <ol><p>the image list.</p></ol>
2885 <ol><p>the position within the list.</p></ol>
2888 <ol><p>the length of the image list to remove.</p></ol>
2891 <ol><p>Replace the removed image list with this list.</p></ol>
2894 <ol><p>return any errors or warnings in this structure.</p></ol>
2897 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2898 _8c.html" target="source" name="Strip">Strip</a></h2>
2899 <div class="doc-section">
2901 <p>Strip() strips any whitespace or quotes from the beginning and end of a string of characters.</p></ol>
2903 <p>The format of the Strip method is:</p>
2906 void Strip(char *message)
2909 <p>A description of each parameter follows:</p></ol>
2912 <ol><p>Specifies an array of characters.</p></ol>
2915 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2916 _8c.html" target="source" name="SyncCacheView">SyncCacheView</a></h2>
2917 <div class="doc-section">
2919 <p>SyncCacheView() saves the cache view pixels to the in-memory or disk cache. It returns MagickTrue if the pixel region is synced, otherwise MagickFalse.</p></ol>
2921 <p>Deprecated, replace with:</p>
2924 SyncCacheViewAuthenticPixels(cache_view,GetCacheViewException(cache_view));
2927 <p>The format of the SyncCacheView method is:</p>
2930 MagickBooleanType SyncCacheView(CacheView *cache_view)
2933 <p>A description of each parameter follows:</p></ol>
2936 <ol><p>the cache view.</p></ol>
2939 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2940 _8c.html" target="source" name="SyncCacheViewPixels">SyncCacheViewPixels</a></h2>
2941 <div class="doc-section">
2943 <p>SyncCacheViewPixels() saves the cache view pixels to the in-memory or disk cache. It returns MagickTrue if the pixel region is flushed, otherwise MagickFalse.</p></ol>
2945 <p>Deprecated, replace with:</p>
2948 SyncCacheViewAuthenticPixels(cache_view,GetCacheViewException(cache_view));
2951 <p>The format of the SyncCacheViewPixels method is:</p>
2954 MagickBooleanType SyncCacheViewPixels(CacheView *cache_view)
2957 <p>A description of each parameter follows:</p></ol>
2960 <ol><p>the cache view.</p></ol>
2963 <ol><p>return any errors or warnings in this structure.</p></ol>
2966 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2967 _8c.html" target="source" name="SyncImagePixels">SyncImagePixels</a></h2>
2968 <div class="doc-section">
2970 <p>SyncImagePixels() saves the image pixels to the in-memory or disk cache. The method returns MagickTrue if the pixel region is synced, otherwise MagickFalse.</p></ol>
2972 <p>Deprecated, replace with:</p>
2975 SyncAuthenticPixels(image,&image->exception);
2978 <p>The format of the SyncImagePixels() method is:</p>
2981 MagickBooleanType SyncImagePixels(Image *image)
2984 <p>A description of each parameter follows:</p></ol>
2987 <ol><p>the image.</p></ol>
2990 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2991 _8c.html" target="source" name="TemporaryFilename">TemporaryFilename</a></h2>
2992 <div class="doc-section">
2994 <p>TemporaryFilename() replaces the contents of path by a unique path name.</p></ol>
2996 <p>The format of the TemporaryFilename method is:</p>
2999 void TemporaryFilename(char *path)
3002 <p>A description of each parameter follows.</p></ol>
3005 <ol><p>Specifies a pointer to an array of characters. The unique path name is returned in this array.</p></ol>
3008 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3009 _8c.html" target="source" name="ThresholdImage">ThresholdImage</a></h2>
3010 <div class="doc-section">
3012 <p>ThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to threshold. The result is a high-contrast, two color image.</p></ol>
3014 <p>The format of the ThresholdImage method is:</p>
3017 unsigned int ThresholdImage(Image *image,const double threshold)
3020 <p>A description of each parameter follows:</p></ol>
3023 <ol><p>the image.</p></ol>
3026 <ol><p>Define the threshold value</p></ol>
3029 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3030 _8c.html" target="source" name="ThresholdImageChannel">ThresholdImageChannel</a></h2>
3031 <div class="doc-section">
3033 <p>ThresholdImageChannel() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p></ol>
3035 <p>The format of the ThresholdImageChannel method is:</p>
3038 unsigned int ThresholdImageChannel(Image *image,const char *threshold)
3041 <p>A description of each parameter follows:</p></ol>
3044 <ol><p>the image.</p></ol>
3047 <ol><p>define the threshold values.</p></ol>
3050 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3051 _8c.html" target="source" name="TransformHSL">TransformHSL</a></h2>
3052 <div class="doc-section">
3054 <p>TransformHSL() converts a (red, green, blue) to a (hue, saturation, lightness) triple.</p></ol>
3056 <p>The format of the TransformHSL method is:</p>
3059 void TransformHSL(const Quantum red,const Quantum green,
3060 const Quantum blue,double *hue,double *saturation,double *lightness)
3063 <p>A description of each parameter follows:</p></ol>
3065 <h5>red, green, blue</h5>
3066 <ol><p>A Quantum value representing the red, green, and blue component of a pixel..</p></ol>
3068 <h5>hue, saturation, lightness</h5>
3069 <ol><p>A pointer to a double value representing a component of the HSL color space.</p></ol>
3072 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3073 _8c.html" target="source" name="TranslateText">TranslateText</a></h2>
3074 <div class="doc-section">
3076 <p>TranslateText() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
3078 <p>Deprecated, replace with:</p>
3081 InterpretImageProperties(image_info,image,embed_text);
3084 <p>The format of the TranslateText method is:</p>
3087 char *TranslateText(const ImageInfo *image_info,Image *image,
3088 const char *embed_text)
3091 <p>A description of each parameter follows:</p></ol>
3094 <ol><p>the image info.</p></ol>
3097 <ol><p>the image.</p></ol>
3100 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
3103 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3104 _8c.html" target="source" name="TransparentImage">TransparentImage</a></h2>
3105 <div class="doc-section">
3107 <p>TransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
3109 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
3111 <p>The format of the TransparentImage method is:</p>
3114 MagickBooleanType TransparentImage(Image *image,
3115 const PixelPacket target,const Quantum opacity)
3118 <p>A description of each parameter follows:</p></ol>
3121 <ol><p>the image.</p></ol>
3124 <ol><p>the RGB value of the target color.</p></ol>
3127 <ol><p>the replacement opacity value.</p></ol>
3130 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3131 _8c.html" target="source" name="UnshiftImageList">UnshiftImageList</a></h2>
3132 <div class="doc-section">
3134 <p>UnshiftImageList() adds the image to the beginning of the list.</p></ol>
3136 <p>Deprecated, replace with:</p>
3139 PrependImageToList(images,CloneImageList(image,exception));
3142 <p>The format of the UnshiftImageList method is:</p>
3145 unsigned int UnshiftImageList(Image *images,const Image *image,
3146 ExceptionInfo *exception)
3149 <p>A description of each parameter follows:</p></ol>
3152 <ol><p>the image list.</p></ol>
3155 <ol><p>the image.</p></ol>
3158 <ol><p>return any errors or warnings in this structure.</p></ol>
3161 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3162 _8c.html" target="source" name="ZoomImage">ZoomImage</a></h2>
3163 <div class="doc-section">
3165 <p>ZoomImage() creates a new image that is a scaled size of an existing one. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. The Point filter gives fast pixel replication, Triangle is equivalent to bi-linear interpolation, and Mitchel giver slower, very high-quality results. See Graphic Gems III for details on this algorithm.</p></ol>
3167 <p>The filter member of the Image structure specifies which image filter to use. Blur specifies the blur factor where > 1 is blurry, < 1 is sharp.</p></ol>
3169 <p>The format of the ZoomImage method is:</p>
3172 Image *ZoomImage(const Image *image,const size_t columns,
3173 const size_t rows,ExceptionInfo *exception)
3176 <p>A description of each parameter follows:</p></ol>
3179 <ol><p>the image.</p></ol>
3182 <ol><p>An integer that specifies the number of columns in the zoom image.</p></ol>
3185 <ol><p>An integer that specifies the number of rows in the scaled image.</p></ol>
3188 <ol><p>return any errors or warnings in this structure.</p></ol>
3194 <div id="linkbar">
\r
3195 <span id="linkbar-west"> </span>
\r
3196 <span id="linkbar-center">
\r
3197 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
3198 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
3200 <span id="linkbar-east"> </span>
\r
3202 <div class="footer">
\r
3203 <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
\r
3204 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
3206 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
3207 <script type="text/javascript">
\r
3208 var _gaq = _gaq || [];
\r
3209 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
3210 _gaq.push(['_trackPageview']);
\r
3213 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
3214 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
3215 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r