1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 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, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
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-2010 ImageMagick Studio LLC"/>
23 <meta name="Distribution" content="Global"/>
24 <link rel="icon" href="../../images/wand.png" sizes="32x32"/>
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
32 <body id="www-imagemagick-org">
\r
33 <div class="titlebar">
\r
34 <a href="../../index.html">
\r
35 <img src="../../images/script.png" alt="[ImageMagick]"
\r
36 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
37 <a href="http://www.networkredux.com">
\r
38 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
39 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
40 <a href="http://www.imagemagick.org/discourse-server/">
\r
41 <img src="../../images/logo.jpg" alt=""
\r
42 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
43 <a href="../../index.html">
\r
44 <img src="../../images/sprite.jpg" alt=""
\r
45 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
48 <div class="westbar">
\r
51 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
53 <div class="sep"></div>
\r
55 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
58 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
61 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
64 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
66 <div class="sep"></div>
\r
68 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
71 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
74 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
77 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
80 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
83 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
86 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
89 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
92 <a title="Program Interface: Magick++" href="../../Magick++/">Magick++</a>
94 <div class="sep"></div>
\r
96 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
99 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
102 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
105 <a title="Resources" href="../../www/resources.html">Resources</a>
108 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
111 <a title="Download" href="../../www/download.html">Download</a>
113 <div class="sep"></div>
\r
115 <a title="Search" href="../http://www.imagemagick.org/script/search.php">Search</a>
117 <div class="sep"></div>
\r
119 <a title="Site Map"href="../../www/sitemap.html">Site Map</a>
122 <a title="Site Map: Links"href="../../www/links.html">Links</a>
124 <div class="sep"></div>
\r
126 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
128 <div class="sponsbox">
129 <div class="sponsor">
130 <a title="Sponsor: Free Catalogs" href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 20120801000600 -->
132 <div class="sponsor">
133 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
135 <div class="sponsor">
136 <a title="Sponsor: Image Converter" href="http://www.batchphoto.com">Image Converter</a><!-- 201103010900 Bits Coffee-->
138 <div class="sponsor">
139 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
141 <div class="sponsor">
142 <a title="Sponsor: Webdesign Agentur" href="http://www.ventzke-partner.de">Webdesign Agentur</a><!-- 201101010480 invendio.de-->
144 <div class="sponsor">
145 <a title="Sponsor: LVM Versicherung" href="http://www.neu-reich.de">LVM Versicherung</a><!-- 201101010480 -->
147 <div class="sponsor">
148 <a title="Sponsor: Diamonds are a Girls Best Friend" href="http://www.schmuck.org">Diamonds are a Girls Best Friend</a><!-- 201101010600 Peterssen-->
150 <div class="sponsor">
151 <a title="Sponsor: Druckerei Online" href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012011200 allesdruck.de-->
157 <div class="eastbar">
\r
158 <script type="text/javascript">
\r
160 google_ad_client = "pub-3129977114552745";
\r
161 google_ad_slot = "0574824969";
\r
162 google_ad_width = 160;
\r
163 google_ad_height = 600;
\r
166 <script type="text/javascript"
\r
167 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
173 <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>
175 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
176 _8c.html" target="source" name="AcquireCacheViewIndexes">AcquireCacheViewIndexes</a></h2>
177 <div class="doc-section">
179 <p>AcquireCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
181 <p>Deprecated, replace with:</p>
184 GetCacheViewVirtualIndexQueue(cache_view);
187 <p>The format of the AcquireCacheViewIndexes method is:</p>
190 const IndexPacket *AcquireCacheViewIndexes(const CacheView *cache_view)
193 <p>A description of each parameter follows:</p></ol>
196 <ol><p>the cache view.</p></ol>
199 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
200 _8c.html" target="source" name="AcquireCacheViewPixels">AcquireCacheViewPixels</a></h2>
201 <div class="doc-section">
203 <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>
205 <p>Deprecated, replace with:</p>
208 GetCacheViewVirtualPixels(cache_view,x,y,columns,rows,exception);
211 <p>The format of the AcquireCacheViewPixels method is:</p>
214 const PixelPacket *AcquireCacheViewPixels(const CacheView *cache_view,
215 const ssize_t x,const ssize_t y,const size_t columns,
216 const size_t rows,ExceptionInfo *exception)
219 <p>A description of each parameter follows:</p></ol>
222 <ol><p>the cache view.</p></ol>
224 <h5>x,y,columns,rows</h5>
225 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
228 <ol><p>return any errors or warnings in this structure.</p></ol>
231 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
232 _8c.html" target="source" name="AcquireImagePixels">AcquireImagePixels</a></h2>
233 <div class="doc-section">
235 <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>
237 <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>
239 <p>If you plan to modify the pixels, use GetAuthenticPixels() instead.</p></ol>
241 <p>Note, the AcquireImagePixels() and GetAuthenticPixels() methods are not thread-safe. In a threaded environment, use GetCacheViewVirtualPixels() or GetCacheViewAuthenticPixels() instead.</p></ol>
243 <p>Deprecated, replace with:</p>
246 GetVirtualPixels(image,x,y,columns,rows,exception);
249 <p>The format of the AcquireImagePixels() method is:</p>
252 const PixelPacket *AcquireImagePixels(const Image *image,const ssize_t x,
253 const ssize_t y,const size_t columns,const size_t rows,
254 ExceptionInfo *exception)
257 <p>A description of each parameter follows:</p></ol>
260 <ol><p>the image.</p></ol>
262 <h5>x,y,columns,rows</h5>
263 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
266 <ol><p>return any errors or warnings in this structure.</p></ol>
269 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
270 _8c.html" target="source" name="AcquireIndexes">AcquireIndexes</a></h2>
271 <div class="doc-section">
273 <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>
275 <p>Deprecated, replace with:</p>
278 GetVirtualIndexQueue(image);
281 <p>The format of the AcquireIndexes() method is:</p>
284 const IndexPacket *AcquireIndexes(const Image *image)
287 <p>A description of each parameter follows:</p></ol>
290 <ol><p>AcquireIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
293 <ol><p>the image.</p></ol>
296 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
297 _8c.html" target="source" name="AcquireMemory">AcquireMemory</a></h2>
298 <div class="doc-section">
300 <p>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use.</p></ol>
302 <p>The format of the AcquireMemory method is:</p>
305 void *AcquireMemory(const size_t size)
308 <p>A description of each parameter follows:</p></ol>
311 <ol><p>the size of the memory in bytes to allocate.</p></ol>
314 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
315 _8c.html" target="source" name="AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a></h2>
316 <div class="doc-section">
318 <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>
320 <p>Deprecated, replace with:</p>
323 GetOneCacheViewVirtualPixel(cache_view,x,y,pixel,exception);
326 <p>The format of the AcquireOneCacheViewPixel method is:</p>
329 MagickBooleanType AcquireOneCacheViewPixel(const CacheView *cache_view,
330 const ssize_t x,const ssize_t y,PixelPacket *pixel,ExceptionInfo *exception)
333 <p>A description of each parameter follows:</p></ol>
336 <ol><p>the cache view.</p></ol>
339 <ol><p>These values define the offset of the pixel.</p></ol>
342 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
345 <ol><p>return any errors or warnings in this structure.</p></ol>
348 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
349 _8c.html" target="source" name="AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a></h2>
350 <div class="doc-section">
352 <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>
354 <p>Deprecated, replace with:</p>
357 GetOneCacheViewVirtualMethodPixel(cache_view,virtual_pixel_method,
358 x,y,pixel,exception);
361 <p>The format of the AcquireOneCacheViewPixel method is:</p>
364 MagickBooleanType AcquireOneCacheViewVirtualPixel(
365 const CacheView *cache_view,
366 const VirtualPixelMethod virtual_pixel_method,const ssize_t x,
367 const ssize_t y,PixelPacket *pixel,ExceptionInfo *exception)
370 <p>A description of each parameter follows:</p></ol>
373 <ol><p>the cache view.</p></ol>
375 <h5>virtual_pixel_method</h5>
376 <ol><p>the virtual pixel method.</p></ol>
379 <ol><p>These values define the offset of the pixel.</p></ol>
382 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
385 <ol><p>return any errors or warnings in this structure.</p></ol>
388 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
389 _8c.html" target="source" name="AcquireOneMagickPixel">AcquireOneMagickPixel</a></h2>
390 <div class="doc-section">
392 <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>
394 <p>Deprecated, replace with:</p>
397 MagickPixelPacket pixel;
398 GetOneVirtualMagickPixel(image,x,y,&pixel,exception);
401 <p>The format of the AcquireOneMagickPixel() method is:</p>
404 MagickPixelPacket AcquireOneMagickPixel(const Image image,const ssize_t x,
405 const ssize_t y,ExceptionInfo exception)
408 <p>A description of each parameter follows:</p></ol>
411 <ol><p>the image.</p></ol>
414 <ol><p>These values define the location of the pixel to return.</p></ol>
417 <ol><p>return any errors or warnings in this structure.</p></ol>
420 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
421 _8c.html" target="source" name="AcquireOnePixel">AcquireOnePixel</a></h2>
422 <div class="doc-section">
424 <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>
426 <p>Deprecated, replace with:</p>
430 GetOneVirtualPixel(image,x,y,&pixel,exception);
433 <p>The format of the AcquireOnePixel() method is:</p>
436 PixelPacket AcquireOnePixel(const Image image,const ssize_t x,
437 const ssize_t y,ExceptionInfo exception)
440 <p>A description of each parameter follows:</p></ol>
443 <ol><p>the image.</p></ol>
446 <ol><p>These values define the location of the pixel to return.</p></ol>
449 <ol><p>return any errors or warnings in this structure.</p></ol>
452 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
453 _8c.html" target="source" name="AcquireOneVirtualPixel">AcquireOneVirtualPixel</a></h2>
454 <div class="doc-section">
456 <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>
458 <p>Deprecated, replace with:</p>
462 GetOneVirtualMethodPixel(image,virtual_pixel_method,x,y,&pixel,exception);
465 <p>The format of the AcquireOneVirtualPixel() method is:</p>
468 PixelPacket AcquireOneVirtualPixel(const Image image,
469 const VirtualPixelMethod virtual_pixel_method,const ssize_t x,
470 const ssize_t y,ExceptionInfo exception)
473 <p>A description of each parameter follows:</p></ol>
475 <h5>virtual_pixel_method</h5>
476 <ol><p>the virtual pixel method.</p></ol>
479 <ol><p>the image.</p></ol>
482 <ol><p>These values define the location of the pixel to return.</p></ol>
485 <ol><p>return any errors or warnings in this structure.</p></ol>
488 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
489 _8c.html" target="source" name="AcquirePixels">AcquirePixels</a></h2>
490 <div class="doc-section">
492 <p>AcquirePixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
494 <p>Deprecated, replace with:</p>
497 GetVirtualPixelQueue(image);
500 <p>The format of the AcquirePixels() method is:</p>
503 const PixelPacket *AcquirePixels(const Image image)
506 <p>A description of each parameter follows:</p></ol>
509 <ol><p>the image.</p></ol>
512 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
513 _8c.html" target="source" name="AffinityImage">AffinityImage</a></h2>
514 <div class="doc-section">
516 <p>AffinityImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
518 <p>Deprecated, replace with:</p>
521 RemapImage(quantize_info,image,affinity_image);
524 <p>The format of the AffinityImage method is:</p>
527 MagickBooleanType AffinityImage(const QuantizeInfo *quantize_info,
528 Image *image,const Image *affinity_image)
531 <p>A description of each parameter follows:</p></ol>
533 <h5>quantize_info</h5>
534 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
537 <ol><p>the image.</p></ol>
539 <h5>affinity_image</h5>
540 <ol><p>the reference image.</p></ol>
543 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
544 _8c.html" target="source" name="AffinityImages">AffinityImages</a></h2>
545 <div class="doc-section">
547 <p>AffinityImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
549 <p>Deprecated, replace with:</p>
552 RemapImages(quantize_info,images,affinity_image);
555 <p>The format of the AffinityImage method is:</p>
558 MagickBooleanType AffinityImages(const QuantizeInfo *quantize_info,
559 Image *images,Image *affinity_image)
562 <p>A description of each parameter follows:</p></ol>
564 <h5>quantize_info</h5>
565 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
568 <ol><p>the image sequence.</p></ol>
570 <h5>affinity_image</h5>
571 <ol><p>the reference image.</p></ol>
574 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
575 _8c.html" target="source" name="AllocateImage">AllocateImage</a></h2>
576 <div class="doc-section">
578 <p>AllocateImage() returns a pointer to an image structure initialized to default values.</p></ol>
580 <p>Deprecated, replace with:</p>
583 AcquireImage(image_info);
586 <p>The format of the AllocateImage method is:</p>
589 Image *AllocateImage(const ImageInfo *image_info)
592 <p>A description of each parameter follows:</p></ol>
595 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
598 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
599 _8c.html" target="source" name="AllocateImageColormap">AllocateImageColormap</a></h2>
600 <div class="doc-section">
602 <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>
604 <p>Deprecated, replace with:</p>
607 AcquireImageColormap(image,colors);
610 <p>The format of the AllocateImageColormap method is:</p>
613 MagickBooleanType AllocateImageColormap(Image *image,
617 <p>A description of each parameter follows:</p></ol>
620 <ol><p>the image.</p></ol>
623 <ol><p>the number of colors in the image colormap.</p></ol>
626 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
627 _8c.html" target="source" name="AllocateNextImage">AllocateNextImage</a></h2>
628 <div class="doc-section">
630 <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>
632 <p>Deprecated, replace with:</p>
635 AcquireNextImage(image_info,image);
638 <p>The format of the AllocateNextImage method is:</p>
641 void AllocateNextImage(const ImageInfo *image_info,Image *image)
644 <p>A description of each parameter follows:</p></ol>
647 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
650 <ol><p>the image.</p></ol>
653 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
654 _8c.html" target="source" name="AllocateString">AllocateString</a></h2>
655 <div class="doc-section">
657 <p>AllocateString() allocates memory for a string and copies the source string to that memory location (and returns it).</p></ol>
659 <p>The format of the AllocateString method is:</p>
662 char *AllocateString(const char *source)
665 <p>A description of each parameter follows:</p></ol>
668 <ol><p>A character string.</p></ol>
671 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
672 _8c.html" target="source" name="AverageImages">AverageImages</a></h2>
673 <div class="doc-section">
675 <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>
677 <p>Deprecated, replace with:</p>
680 EvaluateImages(images,MeanEvaluateOperator,exception);
683 <p>The format of the AverageImages method is:</p>
686 Image *AverageImages(Image *images,ExceptionInfo *exception)
689 <p>A description of each parameter follows:</p></ol>
692 <ol><p>the image sequence.</p></ol>
695 <ol><p>return any errors or warnings in this structure.</p></ol>
698 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
699 _8c.html" target="source" name="ChannelThresholdImage">ChannelThresholdImage</a></h2>
700 <div class="doc-section">
702 <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>
704 <p>The format of the ChannelThresholdImage method is:</p>
707 unsigned int ChannelThresholdImage(Image *image,const char *level)
710 <p>A description of each parameter follows:</p></ol>
713 <ol><p>the image.</p></ol>
716 <ol><p>define the threshold values.</p></ol>
719 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
720 _8c.html" target="source" name="ClipPathImage">ClipPathImage</a></h2>
721 <div class="doc-section">
723 <p>ClipPathImage() sets the image clip mask based any clipping path information if it exists.</p></ol>
725 <p>Deprecated, replace with:</p>
728 ClipImagePath(image,pathname,inside);
731 <p>The format of the ClipImage method is:</p>
734 MagickBooleanType ClipPathImage(Image *image,const char *pathname,
735 const MagickBooleanType inside)
738 <p>A description of each parameter follows:</p></ol>
741 <ol><p>the image.</p></ol>
744 <ol><p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p></ol>
747 <ol><p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p></ol>
750 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
751 _8c.html" target="source" name="CloneImageAttributes">CloneImageAttributes</a></h2>
752 <div class="doc-section">
754 <p>CloneImageAttributes() clones one or more image attributes.</p></ol>
756 <p>Deprecated, replace with:</p>
759 CloneImageProperties(image,clone_image);
762 <p>The format of the CloneImageAttributes method is:</p>
765 MagickBooleanType CloneImageAttributes(Image *image,
766 const Image *clone_image)
769 <p>A description of each parameter follows:</p></ol>
772 <ol><p>the image.</p></ol>
775 <ol><p>the clone image.</p></ol>
778 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
779 _8c.html" target="source" name="CloneMemory">CloneMemory</a></h2>
780 <div class="doc-section">
782 <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>
784 <p>The format of the CloneMemory method is:</p>
787 void *CloneMemory(void *destination,const void *source,
791 <p>A description of each parameter follows:</p></ol>
794 <ol><p>the destination.</p></ol>
797 <ol><p>the source.</p></ol>
800 <ol><p>the size of the memory in bytes to allocate.</p></ol>
803 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
804 _8c.html" target="source" name="CloseCacheView">CloseCacheView</a></h2>
805 <div class="doc-section">
807 <p>CloseCacheView() closes the specified view returned by a previous call to OpenCacheView().</p></ol>
809 <p>Deprecated, replace with:</p>
812 DestroyCacheView(view_info);
815 <p>The format of the CloseCacheView method is:</p>
818 CacheView *CloseCacheView(CacheView *view_info)
821 <p>A description of each parameter follows:</p></ol>
824 <ol><p>the address of a structure of type CacheView.</p></ol>
827 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
828 _8c.html" target="source" name="ColorFloodfill">ColorFloodfill</a></h2>
829 <div class="doc-section">
831 <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>
833 <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>
835 <p>The format of the ColorFloodfillImage method is:</p>
838 MagickBooleanType ColorFloodfillImage(Image *image,
839 const DrawInfo *draw_info,const PixelPacket target,
840 const ssize_t x_offset,const ssize_t y_offset,const PaintMethod method)
843 <p>A description of each parameter follows:</p></ol>
846 <ol><p>the image.</p></ol>
849 <ol><p>the draw info.</p></ol>
852 <ol><p>the RGB value of the target color.</p></ol>
855 <ol><p>the starting location of the operation.</p></ol>
858 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
861 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
862 _8c.html" target="source" name="DeleteImageAttribute">DeleteImageAttribute</a></h2>
863 <div class="doc-section">
865 <p>DeleteImageAttribute() deletes an attribute from the image.</p></ol>
867 <p>Deprecated, replace with:</p>
870 DeleteImageProperty(image,key);
873 <p>The format of the DeleteImageAttribute method is:</p>
876 MagickBooleanType DeleteImageAttribute(Image *image,const char *key)
879 <p>A description of each parameter follows:</p></ol>
882 <ol><p>the image info.</p></ol>
885 <ol><p>the image key.</p></ol>
888 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
889 _8c.html" target="source" name="DeleteImageList">DeleteImageList</a></h2>
890 <div class="doc-section">
892 <p>DeleteImageList() deletes an image at the specified position in the list.</p></ol>
894 <p>The format of the DeleteImageList method is:</p>
897 unsigned int DeleteImageList(Image *images,const ssize_t offset)
900 <p>A description of each parameter follows:</p></ol>
903 <ol><p>the image list.</p></ol>
906 <ol><p>the position within the list.</p></ol>
909 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
910 _8c.html" target="source" name="DeleteMagickRegistry">DeleteMagickRegistry</a></h2>
911 <div class="doc-section">
913 <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>
915 <p>Deprecated, replace with:</p>
918 char key[MaxTextExtent];
919 FormatMagickString(key,MaxTextExtent,"ld\n",id);
920 DeleteImageRegistry(key);
923 <p>The format of the DeleteMagickRegistry method is:</p>
926 MagickBooleanType DeleteMagickRegistry(const ssize_t id)
929 <p>A description of each parameter follows:</p></ol>
932 <ol><p>the registry id.</p></ol>
935 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
936 _8c.html" target="source" name="DescribeImage">DescribeImage</a></h2>
937 <div class="doc-section">
939 <p>DescribeImage() describes an image by printing its attributes to the file. Attributes include the image width, height, size, and others.</p></ol>
941 <p>Deprecated, replace with:</p>
944 IdentifyImage(image,file,verbose);
947 <p>The format of the DescribeImage method is:</p>
950 MagickBooleanType DescribeImage(Image *image,FILE *file,
951 const MagickBooleanType verbose)
954 <p>A description of each parameter follows:</p></ol>
957 <ol><p>the image.</p></ol>
960 <ol><p>the file, typically stdout.</p></ol>
963 <ol><p>A value other than zero prints more detailed information about the image.</p></ol>
966 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
967 _8c.html" target="source" name="DestroyImageAttributes">DestroyImageAttributes</a></h2>
968 <div class="doc-section">
970 <p>DestroyImageAttributes() deallocates memory associated with the image attribute list.</p></ol>
972 <p>The format of the DestroyImageAttributes method is:</p>
975 DestroyImageAttributes(Image *image)
978 <p>A description of each parameter follows:</p></ol>
981 <ol><p>the image.</p></ol>
984 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
985 _8c.html" target="source" name="DestroyImages">DestroyImages</a></h2>
986 <div class="doc-section">
988 <p>DestroyImages() destroys an image list.</p></ol>
990 <p>Deprecated, replace with:</p>
993 DestroyImageList(image);
996 <p>The format of the DestroyImages method is:</p>
999 void DestroyImages(Image *image)
1002 <p>A description of each parameter follows:</p></ol>
1005 <ol><p>the image sequence.</p></ol>
1008 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1009 _8c.html" target="source" name="DestroyMagick">DestroyMagick</a></h2>
1010 <div class="doc-section">
1012 <p>DestroyMagick() destroys the ImageMagick environment.</p></ol>
1014 <p>Deprecated, replace with:</p>
1017 MagickCoreTerminus();
1020 <p>The format of the DestroyMagick function is:</p>
1027 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1028 _8c.html" target="source" name="DispatchImage">DispatchImage</a></h2>
1029 <div class="doc-section">
1031 <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>
1033 <p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
1036 DispatchImage(image,0,0,640,1,"RGB",CharPixel,pixels,exception);
1039 <p>Deprecated, replace with:</p>
1042 ExportImagePixels(image,x_offset,y_offset,columns,rows,map,type,pixels,
1046 <p>The format of the DispatchImage method is:</p>
1049 unsigned int DispatchImage(const Image *image,const ssize_t x_offset,
1050 const ssize_t y_offset,const size_t columns,
1051 const size_t rows,const char *map,const StorageType type,
1052 void *pixels,ExceptionInfo *exception)
1055 <p>A description of each parameter follows:</p></ol>
1058 <ol><p>the image.</p></ol>
1060 <h5>x_offset, y_offset, columns, rows</h5>
1061 <ol><p>These values define the perimeter of a region of pixels you want to extract.</p></ol>
1064 <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>
1067 <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>
1070 <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>
1073 <ol><p>return any errors or warnings in this structure.</p></ol>
1076 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1077 _8c.html" target="source" name="ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a></h2>
1078 <div class="doc-section">
1080 <p>ExtractSubimageFromImageImage() extracts a region of the image that most closely resembles the reference.</p></ol>
1082 <p>The format of the ExtractSubimageFromImageImage method is:</p>
1085 Image *ExtractSubimageFromImage(const Image *image,
1086 const Image *reference,ExceptionInfo *exception)
1089 <p>A description of each parameter follows:</p></ol>
1092 <ol><p>the image.</p></ol>
1095 <ol><p>find an area of the image that closely resembles this image.</p></ol>
1098 <ol><p>return any errors or warnings in this structure.</p></ol>
1101 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1102 _8c.html" target="source" name="FlattenImages">FlattenImages</a></h2>
1103 <div class="doc-section">
1105 <p>FlattenImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
1107 <p>Deprecated, replace with:</p>
1110 MergeImageLayers(image,FlattenLayer,exception);
1113 <p>The format of the FlattenImage method is:</p>
1116 Image *FlattenImage(Image *image,ExceptionInfo *exception)
1119 <p>A description of each parameter follows:</p></ol>
1122 <ol><p>the image sequence.</p></ol>
1125 <ol><p>return any errors or warnings in this structure.</p></ol>
1128 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1129 _8c.html" target="source" name="FormatImageAttribute">FormatImageAttribute</a></h2>
1130 <div class="doc-section">
1132 <p>FormatImageAttribute() permits formatted key/value pairs to be saved as an image attribute.</p></ol>
1134 <p>The format of the FormatImageAttribute method is:</p>
1137 MagickBooleanType FormatImageAttribute(Image *image,const char *key,
1138 const char *format,...)
1141 <p>A description of each parameter follows.</p></ol>
1144 <ol><p>The image.</p></ol>
1147 <ol><p>The attribute key.</p></ol>
1150 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
1153 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1154 _8c.html" target="source" name="FormatString">FormatString</a></h2>
1155 <div class="doc-section">
1157 <p>FormatString() prints formatted output of a variable argument list.</p></ol>
1159 <p>The format of the FormatString method is:</p>
1162 void FormatString(char *string,const char *format,...)
1165 <p>A description of each parameter follows.</p></ol>
1168 <ol><p>Method FormatString returns the formatted string in this character buffer.</p></ol>
1171 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
1174 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1175 _8c.html" target="source" name="GetConfigureBlob">GetConfigureBlob</a></h2>
1176 <div class="doc-section">
1178 <p>GetConfigureBlob() returns the specified configure file as a blob.</p></ol>
1180 <p>The format of the GetConfigureBlob method is:</p>
1183 void *GetConfigureBlob(const char *filename,ExceptionInfo *exception)
1186 <p>A description of each parameter follows:</p></ol>
1189 <ol><p>the configure file name.</p></ol>
1192 <ol><p>return the full path information of the configure file.</p></ol>
1195 <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>
1198 <ol><p>return any errors or warnings in this structure.</p></ol>
1201 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1202 _8c.html" target="source" name="GetCacheView">GetCacheView</a></h2>
1203 <div class="doc-section">
1205 <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>
1207 <p>Deprecated, replace with:</p>
1210 GetCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
1211 GetCacheViewException(cache_view));
1214 <p>The format of the GetCacheView method is:</p>
1217 PixelPacket *GetCacheView(CacheView *cache_view,const ssize_t x,
1218 const ssize_t y,const size_t columns,const size_t rows)
1221 <p>A description of each parameter follows:</p></ol>
1224 <ol><p>the address of a structure of type CacheView.</p></ol>
1226 <h5>x,y,columns,rows</h5>
1227 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1230 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1231 _8c.html" target="source" name="GetCacheViewIndexes">GetCacheViewIndexes</a></h2>
1232 <div class="doc-section">
1234 <p>GetCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
1236 <p>Deprecated, replace with:</p>
1239 GetCacheViewAuthenticIndexQueue(cache_view);
1242 <p>The format of the GetCacheViewIndexes method is:</p>
1245 IndexPacket *GetCacheViewIndexes(CacheView *cache_view)
1248 <p>A description of each parameter follows:</p></ol>
1251 <ol><p>the cache view.</p></ol>
1254 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1255 _8c.html" target="source" name="GetCacheViewPixels">GetCacheViewPixels</a></h2>
1256 <div class="doc-section">
1258 <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>
1260 <p>Deprecated, replace with:</p>
1263 GetCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
1264 GetCacheViewException(cache_view));
1267 <p>The format of the GetCacheViewPixels method is:</p>
1270 PixelPacket *GetCacheViewPixels(CacheView *cache_view,const ssize_t x,
1271 const ssize_t y,const size_t columns,const size_t rows)
1274 <p>A description of each parameter follows:</p></ol>
1277 <ol><p>the cache view.</p></ol>
1279 <h5>x,y,columns,rows</h5>
1280 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1283 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1284 _8c.html" target="source" name="GetImageAttribute">GetImageAttribute</a></h2>
1285 <div class="doc-section">
1287 <p>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL.</p></ol>
1289 <p>The format of the GetImageAttribute method is:</p>
1292 const ImageAttribute *GetImageAttribute(const Image *image,
1296 <p>A description of each parameter follows:</p></ol>
1299 <ol><p>the image.</p></ol>
1302 <ol><p>These character strings are the name of an image attribute to return.</p></ol>
1305 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1306 _8c.html" target="source" name="GetImageClippingPathAttribute">GetImageClippingPathAttribute</a></h2>
1307 <div class="doc-section">
1309 <p>GetImageClippingPathAttribute() searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</p></ol>
1311 <p>Deprecated, replace with:</p>
1314 GetImageAttribute(image,"8BIM:1999,2998");
1317 <p>The format of the GetImageClippingPathAttribute method is:</p>
1320 const ImageAttribute *GetImageClippingPathAttribute(Image *image)
1323 <p>A description of each parameter follows:</p></ol>
1326 <ol><p>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</p></ol>
1329 <ol><p>the image.</p></ol>
1332 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1333 _8c.html" target="source" name="GetImageFromMagickRegistry">GetImageFromMagickRegistry</a></h2>
1334 <div class="doc-section">
1336 <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>
1338 <p>Deprecated, replace with:</p>
1341 GetImageRegistry(ImageRegistryType,name,exception);
1344 <p>The format of the GetImageFromMagickRegistry method is:</p>
1347 Image *GetImageFromMagickRegistry(const char *name,ssize_t *id,
1348 ExceptionInfo *exception)
1351 <p>A description of each parameter follows:</p></ol>
1354 <ol><p>the name of the image to retrieve from the registry.</p></ol>
1357 <ol><p>the registry id.</p></ol>
1360 <ol><p>return any errors or warnings in this structure.</p></ol>
1363 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1364 _8c.html" target="source" name="GetMagickRegistry">GetMagickRegistry</a></h2>
1365 <div class="doc-section">
1367 <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>
1369 <p>The format of the GetMagickRegistry method is:</p>
1372 const void *GetMagickRegistry(const ssize_t id,RegistryType *type,
1373 size_t *length,ExceptionInfo *exception)
1376 <p>A description of each parameter follows:</p></ol>
1379 <ol><p>the registry id.</p></ol>
1382 <ol><p>the registry type.</p></ol>
1385 <ol><p>the blob length in number of bytes.</p></ol>
1388 <ol><p>return any errors or warnings in this structure.</p></ol>
1391 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1392 _8c.html" target="source" name="GetImageGeometry">GetImageGeometry</a></h2>
1393 <div class="doc-section">
1395 <p>GetImageGeometry() returns a region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1397 <p>Deprecated, replace with:</p>
1400 if (size_to_fit != MagickFalse)
1401 ParseRegionGeometry(image,geometry,region_info,&image->exception); else
1402 ParsePageGeometry(image,geometry,region_info,&image->exception);
1405 <p>The format of the GetImageGeometry method is:</p>
1408 int GetImageGeometry(Image *image,const char *geometry,
1409 const unsigned int size_to_fit,RectangeInfo *region_info)
1412 <p>A description of each parameter follows:</p></ol>
1415 <ol><p>Method GetImageGeometry returns a bitmask that indicates which of the four values were located in the geometry string.</p></ol>
1418 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1420 <h5>size_to_fit</h5>
1421 <ol><p>A value other than 0 means to scale the region so it fits within the specified width and height.</p></ol>
1423 <h5>region_info</h5>
1424 <ol><p>the region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1427 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1428 _8c.html" target="source" name="GetImageList">GetImageList</a></h2>
1429 <div class="doc-section">
1431 <p>GetImageList() returns an image at the specified position in the list.</p></ol>
1433 <p>Deprecated, replace with:</p>
1436 CloneImage(GetImageFromList(images,(ssize_t) offset),0,0,MagickTrue,
1440 <p>The format of the GetImageList method is:</p>
1443 Image *GetImageList(const Image *images,const ssize_t offset,
1444 ExceptionInfo *exception)
1447 <p>A description of each parameter follows:</p></ol>
1450 <ol><p>the image list.</p></ol>
1453 <ol><p>the position within the list.</p></ol>
1456 <ol><p>return any errors or warnings in this structure.</p></ol>
1459 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1460 _8c.html" target="source" name="GetImageListIndex">GetImageListIndex</a></h2>
1461 <div class="doc-section">
1463 <p>GetImageListIndex() returns the position in the list of the specified image.</p></ol>
1465 <p>Deprecated, replace with:</p>
1468 GetImageIndexInList(images);
1471 <p>The format of the GetImageListIndex method is:</p>
1474 ssize_t GetImageListIndex(const Image *images)
1477 <p>A description of each parameter follows:</p></ol>
1480 <ol><p>the image list.</p></ol>
1483 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1484 _8c.html" target="source" name="GetImageListSize">GetImageListSize</a></h2>
1485 <div class="doc-section">
1487 <p>GetImageListSize() returns the number of images in the list.</p></ol>
1489 <p>Deprecated, replace with:</p>
1492 GetImageListLength(images);
1495 <p>The format of the GetImageListSize method is:</p>
1498 size_t GetImageListSize(const Image *images)
1501 <p>A description of each parameter follows:</p></ol>
1504 <ol><p>the image list.</p></ol>
1507 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1508 _8c.html" target="source" name="GetImagePixels">GetImagePixels</a></h2>
1509 <div class="doc-section">
1511 <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>
1513 <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>
1515 <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>
1517 <p>Deprecated, replace with:</p>
1520 GetAuthenticPixels(image,x,y,columns,rows,&image->exception);
1523 <p>The format of the GetImagePixels() method is:</p>
1526 PixelPacket *GetImagePixels(Image *image,const ssize_t x,const ssize_t y,
1527 const size_t columns,const size_t rows)
1530 <p>A description of each parameter follows:</p></ol>
1533 <ol><p>the image.</p></ol>
1535 <h5>x,y,columns,rows</h5>
1536 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1539 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1540 _8c.html" target="source" name="GetIndexes">GetIndexes</a></h2>
1541 <div class="doc-section">
1543 <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>
1545 <p>Deprecated, replace with:</p>
1548 GetAuthenticIndexQueue(image);
1551 <p>The format of the GetIndexes() method is:</p>
1554 IndexPacket *GetIndexes(const Image *image)
1557 <p>A description of each parameter follows:</p></ol>
1560 <ol><p>GetIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1563 <ol><p>the image.</p></ol>
1566 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1567 _8c.html" target="source" name="GetNextImage">GetNextImage</a></h2>
1568 <div class="doc-section">
1570 <p>GetNextImage() returns the next image in a list.</p></ol>
1572 <p>Deprecated, replace with:</p>
1575 GetNextImageInList(images);
1578 <p>The format of the GetNextImage method is:</p>
1581 Image *GetNextImage(const Image *images)
1584 <p>A description of each parameter follows:</p></ol>
1587 <ol><p>the image list.</p></ol>
1590 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1591 _8c.html" target="source" name="GetNextImageAttribute">GetNextImageAttribute</a></h2>
1592 <div class="doc-section">
1594 <p>GetNextImageAttribute() gets the next image attribute.</p></ol>
1596 <p>Deprecated, replace with:</p>
1599 const char *property;
1600 property=GetNextImageProperty(image);
1601 if (property != (const char *) NULL)
1602 GetImageAttribute(image,property);
1605 <p>The format of the GetNextImageAttribute method is:</p>
1608 const ImageAttribute *GetNextImageAttribute(const Image *image)
1611 <p>A description of each parameter follows:</p></ol>
1614 <ol><p>the image.</p></ol>
1617 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1618 _8c.html" target="source" name="GetNumberScenes">GetNumberScenes</a></h2>
1619 <div class="doc-section">
1621 <p>GetNumberScenes() returns the number of images in the list.</p></ol>
1623 <p>Deprecated, replace with:</p>
1626 GetImageListLength(image);
1629 <p>The format of the GetNumberScenes method is:</p>
1632 unsigned int GetNumberScenes(const Image *images)
1635 <p>A description of each parameter follows:</p></ol>
1638 <ol><p>the image list.</p></ol>
1641 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1642 _8c.html" target="source" name="GetOnePixel">GetOnePixel</a></h2>
1643 <div class="doc-section">
1645 <p>GetOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p></ol>
1647 <p>Deprecated, replace with:</p>
1650 GetOneAuthenticPixel(image,x,y,&pixel,&image->exception);
1653 <p>The format of the GetOnePixel() method is:</p>
1656 PixelPacket GetOnePixel(const Image image,const ssize_t x,const ssize_t y)
1659 <p>A description of each parameter follows:</p></ol>
1662 <ol><p>the image.</p></ol>
1665 <ol><p>These values define the location of the pixel to return.</p></ol>
1668 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1669 _8c.html" target="source" name="GetPixels">GetPixels</a></h2>
1670 <div class="doc-section">
1672 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1674 <p>Deprecated, replace with:</p>
1677 GetAuthenticPixelQueue(image);
1680 <p>The format of the GetPixels() method is:</p>
1683 PixelPacket *GetPixels(const Image image)
1686 <p>A description of each parameter follows:</p></ol>
1689 <ol><p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1692 <ol><p>the image.</p></ol>
1695 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1696 _8c.html" target="source" name="GetPreviousImage">GetPreviousImage</a></h2>
1697 <div class="doc-section">
1699 <p>GetPreviousImage() returns the previous image in a list.</p></ol>
1701 <p>Deprecated, replace with:</p>
1704 GetPreviousImageInList(images));
1707 <p>The format of the GetPreviousImage method is:</p>
1710 Image *GetPreviousImage(const Image *images)
1713 <p>A description of each parameter follows:</p></ol>
1716 <ol><p>the image list.</p></ol>
1719 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1720 _8c.html" target="source" name="HSLTransform">HSLTransform</a></h2>
1721 <div class="doc-section">
1723 <p>HSLTransform() converts a (hue, saturation, lightness) to a (red, green, blue) triple.</p></ol>
1725 <p>The format of the HSLTransformImage method is:</p>
1728 void HSLTransform(const double hue,const double saturation,
1729 const double lightness,Quantum *red,Quantum *green,Quantum *blue)
1732 <p>A description of each parameter follows:</p></ol>
1734 <h5>hue, saturation, lightness</h5>
1735 <ol><p>A double value representing a component of the HSL color space.</p></ol>
1737 <h5>red, green, blue</h5>
1738 <ol><p>A pointer to a pixel component of type Quantum.</p></ol>
1741 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1742 _8c.html" target="source" name="IdentityAffine">IdentityAffine</a></h2>
1743 <div class="doc-section">
1745 <p>IdentityAffine() initializes the affine transform to the identity matrix.</p></ol>
1747 <p>The format of the IdentityAffine method is:</p>
1750 IdentityAffine(AffineMatrix *affine)
1753 <p>A description of each parameter follows:</p></ol>
1756 <ol><p>A pointer the affine transform of type AffineMatrix.</p></ol>
1759 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1760 _8c.html" target="source" name="InitializeMagick">InitializeMagick</a></h2>
1761 <div class="doc-section">
1763 <p>InitializeMagick() initializes the ImageMagick environment.</p></ol>
1765 <p>Deprecated, replace with:</p>
1768 MagickCoreGenesis(path,MagickFalse);
1771 <p>The format of the InitializeMagick function is:</p>
1774 InitializeMagick(const char *path)
1777 <p>A description of each parameter follows:</p></ol>
1780 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1783 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1784 _8c.html" target="source" name="InterpolatePixelColor">InterpolatePixelColor</a></h2>
1785 <div class="doc-section">
1787 <p>InterpolatePixelColor() applies bi-linear or tri-linear interpolation between a pixel and it's neighbors.</p></ol>
1789 <p>The format of the InterpolatePixelColor method is:</p>
1792 MagickPixelPacket InterpolatePixelColor(const Image *image,
1793 CacheView *view_info,InterpolatePixelMethod method,const double x,
1794 const double y,ExceptionInfo *exception)
1797 <p>A description of each parameter follows:</p></ol>
1800 <ol><p>the image.</p></ol>
1803 <ol><p>the image cache view.</p></ol>
1806 <ol><p>the type of pixel color interpolation.</p></ol>
1809 <ol><p>A double representing the current (x,y) position of the pixel.</p></ol>
1812 <ol><p>return any errors or warnings in this structure.</p></ol>
1815 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1816 _8c.html" target="source" name="InterpretImageAttributes">InterpretImageAttributes</a></h2>
1817 <div class="doc-section">
1819 <p>InterpretImageAttributes() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
1821 <p>Deprecated, replace with:</p>
1824 InterpretImageProperties(image_info,image,embed_text);
1827 <p>The format of the InterpretImageAttributes method is:</p>
1830 char *InterpretImageAttributes(const ImageInfo *image_info,Image *image,
1831 const char *embed_text)
1834 <p>A description of each parameter follows:</p></ol>
1837 <ol><p>the image info.</p></ol>
1840 <ol><p>the image.</p></ol>
1843 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
1846 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1847 _8c.html" target="source" name="LevelImageColor">LevelImageColor</a></h2>
1848 <div class="doc-section">
1850 <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>
1852 <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>
1854 <p>Deprecated, replace with:</p>
1857 LevelColorsImageChannel(image,channel,black_color,white_color,invert);
1860 <p>The format of the LevelImageColors method is:</p>
1863 MagickBooleanType LevelImageColors(Image *image,const ChannelType channel,
1864 const MagickPixelPacket *black_color,const MagickPixelPacket *white_color,
1865 const MagickBooleanType invert)
1868 <p>A description of each parameter follows:</p></ol>
1871 <ol><p>the image.</p></ol>
1874 <ol><p>the channel.</p></ol>
1876 <h5>black_color</h5>
1877 <ol><p>The color to map black to/from</p></ol>
1879 <h5>white_point</h5>
1880 <ol><p>The color to map white to/from</p></ol>
1883 <ol><p>if true map the colors (levelize), rather than from (level)</p></ol>
1886 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1887 _8c.html" target="source" name="LiberateMemory">LiberateMemory</a></h2>
1888 <div class="doc-section">
1890 <p>LiberateMemory() frees memory that has already been allocated, and NULL's the pointer to it.</p></ol>
1892 <p>The format of the LiberateMemory method is:</p>
1895 void LiberateMemory(void **memory)
1898 <p>A description of each parameter follows:</p></ol>
1901 <ol><p>A pointer to a block of memory to free for reuse.</p></ol>
1904 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1905 _8c.html" target="source" name="LiberateSemaphoreInfo">LiberateSemaphoreInfo</a></h2>
1906 <div class="doc-section">
1908 <p>LiberateSemaphoreInfo() relinquishes a semaphore.</p></ol>
1910 <p>Deprecated, replace with:</p>
1913 UnlockSemaphoreInfo(*semaphore_info);
1916 <p>The format of the LiberateSemaphoreInfo method is:</p>
1919 LiberateSemaphoreInfo(void **semaphore_info)
1922 <p>A description of each parameter follows:</p></ol>
1924 <h5>semaphore_info</h5>
1925 <ol><p>Specifies a pointer to an SemaphoreInfo structure.</p></ol>
1928 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1929 _8c.html" target="source" name="MagickIncarnate">MagickIncarnate</a></h2>
1930 <div class="doc-section">
1932 <p>MagickIncarnate() initializes the ImageMagick environment.</p></ol>
1934 <p>Deprecated, replace with:</p>
1937 MagickCoreGenesis(path,MagickFalse);
1940 <p>The format of the MagickIncarnate function is:</p>
1943 MagickIncarnate(const char *path)
1946 <p>A description of each parameter follows:</p></ol>
1949 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1952 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1953 _8c.html" target="source" name="MagickMonitor">MagickMonitor</a></h2>
1954 <div class="doc-section">
1956 <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>
1958 <p>The format of the MagickMonitor method is:</p>
1961 MagickBooleanType MagickMonitor(const char *text,
1962 const MagickOffsetType offset,const MagickSizeType span,
1966 <p>A description of each parameter follows:</p></ol>
1969 <ol><p>the position relative to the span parameter which represents how much progress has been made toward completing a task.</p></ol>
1972 <ol><p>the span relative to completing a task.</p></ol>
1974 <h5>client_data</h5>
1975 <ol><p>the client data.</p></ol>
1978 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1979 _8c.html" target="source" name="MapImage">MapImage</a></h2>
1980 <div class="doc-section">
1982 <p>MapImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
1984 <p>Deprecated, replace with:</p>
1987 QuantizeInfo quantize_info;
1988 GetQuantizeInfo(&quantize_info);
1989 quantize_info.dither=dither;
1990 RemapImage(&quantize_info,image,map_image);
1993 <p>The format of the MapImage method is:</p>
1996 MagickBooleanType MapImage(Image *image,const Image *map_image,
1997 const MagickBooleanType dither)
2000 <p>A description of each parameter follows:</p></ol>
2003 <ol><p>Specifies a pointer to an Image structure.</p></ol>
2006 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
2009 <ol><p>Set this integer value to something other than zero to dither the mapped image.</p></ol>
2012 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2013 _8c.html" target="source" name="MapImages">MapImages</a></h2>
2014 <div class="doc-section">
2016 <p>MapImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
2018 <p>Deprecated, replace with:</p>
2021 QuantizeInfo quantize_info;
2022 GetQuantizeInfo(&quantize_info);
2023 quantize_info.dither=dither;
2024 RemapImages(&quantize_info,images,map_image);
2027 <p>The format of the MapImage method is:</p>
2030 MagickBooleanType MapImages(Image *images,Image *map_image,
2031 const MagickBooleanType dither)
2034 <p>A description of each parameter follows:</p></ol>
2037 <ol><p>Specifies a pointer to a set of Image structures.</p></ol>
2040 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
2043 <ol><p>Set this integer value to something other than zero to dither the quantized image.</p></ol>
2046 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2047 _8c.html" target="source" name="MatteFloodfill">MatteFloodfill</a></h2>
2048 <div class="doc-section">
2050 <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>
2052 <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>
2054 <p>The format of the MatteFloodfillImage method is:</p>
2057 MagickBooleanType MatteFloodfillImage(Image *image,
2058 const PixelPacket target,const Quantum opacity,const ssize_t x_offset,
2059 const ssize_t y_offset,const PaintMethod method)
2062 <p>A description of each parameter follows:</p></ol>
2065 <ol><p>the image.</p></ol>
2068 <ol><p>the RGB value of the target color.</p></ol>
2071 <ol><p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p></ol>
2074 <ol><p>the starting location of the operation.</p></ol>
2077 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
2080 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2081 _8c.html" target="source" name="MaximumImages">MaximumImages</a></h2>
2082 <div class="doc-section">
2084 <p>MaximumImages() returns the maximum intensity of an image sequence.</p></ol>
2086 <p>Deprecated, replace with:</p>
2089 EvaluateImages(images,MinEvaluateOperator,exception);
2092 <p>The format of the MaxImages method is:</p>
2095 Image *MaximumImages(Image *images,ExceptionInfo *exception)
2098 <p>A description of each parameter follows:</p></ol>
2101 <ol><p>the image sequence.</p></ol>
2104 <ol><p>return any errors or warnings in this structure.</p></ol>
2107 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2108 _8c.html" target="source" name="MinimumImages">MinimumImages</a></h2>
2109 <div class="doc-section">
2111 <p>MinimumImages() returns the minimum intensity of an image sequence.</p></ol>
2113 <p>Deprecated, replace with:</p>
2116 EvaluateImages(images,MinEvaluateOperator,exception);
2119 <p>The format of the MinimumImages method is:</p>
2122 Image *MinimumImages(Image *images,ExceptionInfo *exception)
2125 <p>A description of each parameter follows:</p></ol>
2128 <ol><p>the image sequence.</p></ol>
2131 <ol><p>return any errors or warnings in this structure.</p></ol>
2134 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2135 _8c.html" target="source" name="MosaicImages">MosaicImages</a></h2>
2136 <div class="doc-section">
2138 <p>MosaicImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
2140 <p>Deprecated, replace with:</p>
2143 MergeImageLayers(image,MosaicLayer,exception);
2146 <p>The format of the MosaicImage method is:</p>
2149 Image *MosaicImages(const Image *image,ExceptionInfo *exception)
2152 <p>A description of each parameter follows:</p></ol>
2155 <ol><p>the image list to be composited together</p></ol>
2158 <ol><p>return any errors or warnings in this structure.</p></ol>
2161 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2162 _8c.html" target="source" name="OpaqueImage">OpaqueImage</a></h2>
2163 <div class="doc-section">
2165 <p>OpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
2167 <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>
2169 <p>The format of the OpaqueImage method is:</p>
2172 MagickBooleanType OpaqueImage(Image *image,
2173 const PixelPacket *target,const PixelPacket fill)
2176 <p>A description of each parameter follows:</p></ol>
2179 <ol><p>the image.</p></ol>
2182 <ol><p>the RGB value of the target color.</p></ol>
2185 <ol><p>the replacement color.</p></ol>
2188 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2189 _8c.html" target="source" name="OpenCacheView">OpenCacheView</a></h2>
2190 <div class="doc-section">
2192 <p>OpenCacheView() opens a view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself.</p></ol>
2194 <p>Deprecated, replace with:</p>
2197 AcquireCacheView(image);
2200 <p>The format of the OpenCacheView method is:</p>
2203 CacheView *OpenCacheView(const Image *image)
2206 <p>A description of each parameter follows:</p></ol>
2209 <ol><p>the image.</p></ol>
2212 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2213 _8c.html" target="source" name="PaintFloodfill">PaintFloodfill</a></h2>
2214 <div class="doc-section">
2216 <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>
2218 <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>
2220 <p>Deprecated, replace with:</p>
2223 FloodfillPaintImage(image,channel,draw_info,target,x,y,
2224 method == FloodfillMethod ? MagickFalse : MagickTrue);
2227 <p>The format of the PaintFloodfillImage method is:</p>
2230 MagickBooleanType PaintFloodfillImage(Image *image,
2231 const ChannelType channel,const MagickPixelPacket target,const ssize_t x,
2232 const ssize_t y,const DrawInfo *draw_info,const PaintMethod method)
2235 <p>A description of each parameter follows:</p></ol>
2238 <ol><p>the image.</p></ol>
2241 <ol><p>the channel(s).</p></ol>
2244 <ol><p>the RGB value of the target color.</p></ol>
2247 <ol><p>the starting location of the operation.</p></ol>
2250 <ol><p>the draw info.</p></ol>
2253 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
2256 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2257 _8c.html" target="source" name="PaintOpaqueImage">PaintOpaqueImage</a></h2>
2258 <div class="doc-section">
2260 <p>PaintOpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
2262 <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>
2264 <p>Deprecated, replace with:</p>
2267 OpaquePaintImageChannel(image,DefaultChannels,target,fill,MagickFalse);
2268 OpaquePaintImageChannel(image,channel,target,fill,MagickFalse);
2271 <p>The format of the PaintOpaqueImage method is:</p>
2274 MagickBooleanType PaintOpaqueImage(Image *image,
2275 const PixelPacket *target,const PixelPacket *fill)
2276 MagickBooleanType PaintOpaqueImageChannel(Image *image,
2277 const ChannelType channel,const PixelPacket *target,
2278 const PixelPacket *fill)
2281 <p>A description of each parameter follows:</p></ol>
2284 <ol><p>the image.</p></ol>
2287 <ol><p>the channel(s).</p></ol>
2290 <ol><p>the RGB value of the target color.</p></ol>
2293 <ol><p>the replacement color.</p></ol>
2296 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2297 _8c.html" target="source" name="PaintTransparentImage">PaintTransparentImage</a></h2>
2298 <div class="doc-section">
2300 <p>PaintTransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
2302 <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>
2304 <p>Deprecated, replace with:</p>
2307 TransparentPaintImage(image,target,opacity,MagickFalse);
2310 <p>The format of the PaintTransparentImage method is:</p>
2313 MagickBooleanType PaintTransparentImage(Image *image,
2314 const MagickPixelPacket *target,const Quantum opacity)
2317 <p>A description of each parameter follows:</p></ol>
2320 <ol><p>the image.</p></ol>
2323 <ol><p>the RGB value of the target color.</p></ol>
2326 <ol><p>the replacement opacity value.</p></ol>
2329 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2330 _8c.html" target="source" name="ParseSizeGeometry">ParseSizeGeometry</a></h2>
2331 <div class="doc-section">
2333 <p>ParseSizeGeometry() returns a region as defined by the geometry string with respect to the image dimensions and aspect ratio.</p></ol>
2335 <p>Deprecated, replace with:</p>
2338 ParseMetaGeometry(geometry,®ion_info->x,®ion_info->y,
2339 ®ion_info->width,®ion_info->height);
2342 <p>The format of the ParseSizeGeometry method is:</p>
2345 MagickStatusType ParseSizeGeometry(const Image *image,
2346 const char *geometry,RectangeInfo *region_info)
2349 <p>A description of each parameter follows:</p></ol>
2352 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
2354 <h5>region_info</h5>
2355 <ol><p>the region as defined by the geometry string.</p></ol>
2358 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2359 _8c.html" target="source" name="PopImageList">PopImageList</a></h2>
2360 <div class="doc-section">
2362 <p>PopImageList() removes the last image in the list.</p></ol>
2364 <p>Deprecated, replace with:</p>
2367 RemoveLastImageFromList(images);
2370 <p>The format of the PopImageList method is:</p>
2373 Image *PopImageList(Image **images)
2376 <p>A description of each parameter follows:</p></ol>
2379 <ol><p>the image list.</p></ol>
2382 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2383 _8c.html" target="source" name="PopImagePixels">PopImagePixels</a></h2>
2384 <div class="doc-section">
2386 <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>
2388 <p>The format of the PopImagePixels method is:</p>
2391 size_t PopImagePixels(Image *,const QuantumType quantum,
2392 unsigned char *destination)
2395 <p>A description of each parameter follows:</p></ol>
2398 <ol><p>the image.</p></ol>
2401 <ol><p>Declare which pixel components to transfer (RGB, RGBA, etc).</p></ol>
2403 <h5>destination</h5>
2404 <ol><p>The components are transferred to this buffer.</p></ol>
2407 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2408 _8c.html" target="source" name="PostscriptGeometry">PostscriptGeometry</a></h2>
2409 <div class="doc-section">
2411 <p>PostscriptGeometry() replaces any page mneumonic with the equivalent size in picas.</p></ol>
2413 <p>Deprecated, replace with:</p>
2416 GetPageGeometry(page);
2419 <p>The format of the PostscriptGeometry method is:</p>
2422 char *PostscriptGeometry(const char *page)
2425 <p>A description of each parameter follows.</p></ol>
2428 <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>
2431 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2432 _8c.html" target="source" name="PushImageList">PushImageList</a></h2>
2433 <div class="doc-section">
2435 <p>PushImageList() adds an image to the end of the list.</p></ol>
2437 <p>Deprecated, replace with:</p>
2440 AppendImageToList(images,CloneImageList(image,exception));
2443 <p>The format of the PushImageList method is:</p>
2446 unsigned int PushImageList(Image *images,const Image *image,
2447 ExceptionInfo *exception)
2450 <p>A description of each parameter follows:</p></ol>
2453 <ol><p>the image list.</p></ol>
2456 <ol><p>the image.</p></ol>
2459 <ol><p>return any errors or warnings in this structure.</p></ol>
2462 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2463 _8c.html" target="source" name="PushImagePixels">PushImagePixels</a></h2>
2464 <div class="doc-section">
2466 <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>
2468 <p>The format of the PushImagePixels method is:</p>
2471 size_t PushImagePixels(Image *image,const QuantumType quantum,
2472 const unsigned char *source)
2475 <p>A description of each parameter follows:</p></ol>
2478 <ol><p>the image.</p></ol>
2481 <ol><p>Declare which pixel components to transfer (red, green, blue, opacity, RGB, or RGBA).</p></ol>
2484 <ol><p>The pixel components are transferred from this buffer.</p></ol>
2487 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2488 _8c.html" target="source" name="QuantizationError">QuantizationError</a></h2>
2489 <div class="doc-section">
2491 <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>
2494 o mean_error_per_pixel: This value is the mean error for any single
2498 <h5>normalized_mean_square_error</h5>
2499 <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>
2501 <h5>normalized_maximum_square_error</h5>
2502 <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>
2504 <p>Deprecated, replace with:</p>
2507 GetImageQuantizeError(image);
2510 <p>The format of the QuantizationError method is:</p>
2513 unsigned int QuantizationError(Image *image)
2516 <p>A description of each parameter follows.</p></ol>
2519 <ol><p>Specifies a pointer to an Image structure; returned from ReadImage.</p></ol>
2522 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2523 _8c.html" target="source" name="RandomChannelThresholdImage">RandomChannelThresholdImage</a></h2>
2524 <div class="doc-section">
2526 <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>
2528 <p>The format of the RandomChannelThresholdImage method is:</p>
2531 unsigned int RandomChannelThresholdImage(Image *image,
2532 const char *channel, const char *thresholds,
2533 ExceptionInfo *exception)
2536 <p>A description of each parameter follows:</p></ol>
2539 <ol><p>the image.</p></ol>
2542 <ol><p>the channel or channels to be thresholded.</p></ol>
2545 <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>
2548 <ol><p>return any errors or warnings in this structure.</p></ol>
2551 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2552 _8c.html" target="source" name="ReacquireMemory">ReacquireMemory</a></h2>
2553 <div class="doc-section">
2555 <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>
2557 <p>The format of the ReacquireMemory method is:</p>
2560 void ReacquireMemory(void **memory,const size_t size)
2563 <p>A description of each parameter follows:</p></ol>
2566 <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>
2569 <ol><p>the new size of the allocated memory.</p></ol>
2572 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2573 _8c.html" target="source" name="RecolorImage">RecolorImage</a></h2>
2574 <div class="doc-section">
2576 <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>
2578 <p>The format of the RecolorImage method is:</p>
2581 Image *RecolorImage(const Image *image,const size_t order,
2582 const double *color_matrix,ExceptionInfo *exception)
2585 <p>A description of each parameter follows:</p></ol>
2588 <ol><p>the image.</p></ol>
2591 <ol><p>the number of columns and rows in the recolor matrix.</p></ol>
2593 <h5>color_matrix</h5>
2594 <ol><p>An array of double representing the recolor matrix.</p></ol>
2597 <ol><p>return any errors or warnings in this structure.</p></ol>
2600 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2601 _8c.html" target="source" name="ResetImageAttributeIterator">ResetImageAttributeIterator</a></h2>
2602 <div class="doc-section">
2604 <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>
2606 <p>Deprecated, replace with:</p>
2609 ResetImagePropertyIterator(image);
2612 <p>The format of the ResetImageAttributeIterator method is:</p>
2615 ResetImageAttributeIterator(const ImageInfo *image)
2618 <p>A description of each parameter follows:</p></ol>
2621 <ol><p>the image.</p></ol>
2624 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2625 _8c.html" target="source" name="SetCacheViewPixels">SetCacheViewPixels</a></h2>
2626 <div class="doc-section">
2628 <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>
2630 <p>Deprecated, replace with:</p>
2633 QueueCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
2634 GetCacheViewException(cache_view));
2637 <p>The format of the SetCacheViewPixels method is:</p>
2640 PixelPacket *SetCacheViewPixels(CacheView *cache_view,const ssize_t x,
2641 const ssize_t y,const size_t columns,const size_t rows)
2644 <p>A description of each parameter follows:</p></ol>
2647 <ol><p>the cache view.</p></ol>
2649 <h5>x,y,columns,rows</h5>
2650 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2653 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2654 _8c.html" target="source" name="SetExceptionInfo">SetExceptionInfo</a></h2>
2655 <div class="doc-section">
2657 <p>SetExceptionInfo() sets the exception severity.</p></ol>
2659 <p>The format of the SetExceptionInfo method is:</p>
2662 MagickBooleanType SetExceptionInfo(ExceptionInfo *exception,
2663 ExceptionType severity)
2666 <p>A description of each parameter follows:</p></ol>
2669 <ol><p>the exception info.</p></ol>
2672 <ol><p>the exception severity.</p></ol>
2675 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2676 _8c.html" target="source" name="SetImage">SetImage</a></h2>
2677 <div class="doc-section">
2679 <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>
2681 <p>The format of the SetImage method is:</p>
2684 void SetImage(Image *image,const Quantum opacity)
2687 <p>A description of each parameter follows:</p></ol>
2690 <ol><p>the image.</p></ol>
2693 <ol><p>Set each pixel to this level of transparency.</p></ol>
2696 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2697 _8c.html" target="source" name="SetImageAttribute">SetImageAttribute</a></h2>
2698 <div class="doc-section">
2700 <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>
2702 <p>Deprecated, replace with:</p>
2705 SetImageProperty(image,key,value);
2708 <p>The format of the SetImageAttribute method is:</p>
2711 MagickBooleanType SetImageAttribute(Image *image,const char *key,
2715 <p>A description of each parameter follows:</p></ol>
2718 <ol><p>the image.</p></ol>
2721 <ol><p>the key.</p></ol>
2724 <ol><p>the value.</p></ol>
2727 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2728 _8c.html" target="source" name="SetImageList">SetImageList</a></h2>
2729 <div class="doc-section">
2731 <p>SetImageList() inserts an image into the list at the specified position.</p></ol>
2733 <p>The format of the SetImageList method is:</p>
2736 unsigned int SetImageList(Image *images,const Image *image,
2737 const ssize_t offset,ExceptionInfo *exception)
2740 <p>A description of each parameter follows:</p></ol>
2743 <ol><p>the image list.</p></ol>
2746 <ol><p>the image.</p></ol>
2749 <ol><p>the position within the list.</p></ol>
2752 <ol><p>return any errors or warnings in this structure.</p></ol>
2755 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2756 _8c.html" target="source" name="SetImagePixels">SetImagePixels</a></h2>
2757 <div class="doc-section">
2759 <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>
2761 <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>
2763 <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>
2765 <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>
2767 <p>Deprecated, replace with:</p>
2770 QueueAuthenticPixels(image,x,y,columns,rows,&image->exception);
2773 <p>The format of the SetImagePixels() method is:</p>
2776 PixelPacket *SetImagePixels(Image *image,const ssize_t x,const ssize_t y,
2777 const size_t columns,const size_t rows)
2780 <p>A description of each parameter follows:</p></ol>
2783 <ol><p>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</p></ol>
2786 <ol><p>the image.</p></ol>
2788 <h5>x,y,columns,rows</h5>
2789 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2792 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2793 _8c.html" target="source" name="SetMagickRegistry">SetMagickRegistry</a></h2>
2794 <div class="doc-section">
2796 <p>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned.</p></ol>
2798 <p>The format of the SetMagickRegistry method is:</p>
2801 ssize_t SetMagickRegistry(const RegistryType type,const void *blob,
2802 const size_t length,ExceptionInfo *exception)
2805 <p>A description of each parameter follows:</p></ol>
2808 <ol><p>the registry type.</p></ol>
2811 <ol><p>the address of a Binary Large OBject.</p></ol>
2814 <ol><p>For a registry type of ImageRegistryType use sizeof(Image) otherise the blob length in number of bytes.</p></ol>
2817 <ol><p>return any errors or warnings in this structure.</p></ol>
2820 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2821 _8c.html" target="source" name="SetMonitorHandler">SetMonitorHandler</a></h2>
2822 <div class="doc-section">
2824 <p>SetMonitorHandler() sets the monitor handler to the specified method and returns the previous monitor handler.</p></ol>
2826 <p>The format of the SetMonitorHandler method is:</p>
2829 MonitorHandler SetMonitorHandler(MonitorHandler handler)
2832 <p>A description of each parameter follows:</p></ol>
2835 <ol><p>Specifies a pointer to a method to handle monitors.</p></ol>
2838 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2839 _8c.html" target="source" name="ShiftImageList">ShiftImageList</a></h2>
2840 <div class="doc-section">
2842 <p>ShiftImageList() removes an image from the beginning of the list.</p></ol>
2844 <p>Deprecated, replace with:</p>
2847 RemoveFirstImageFromList(images);
2850 <p>The format of the ShiftImageList method is:</p>
2853 Image *ShiftImageList(Image **images)
2856 <p>A description of each parameter follows:</p></ol>
2859 <ol><p>the image list.</p></ol>
2862 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2863 _8c.html" target="source" name="SpliceImageList">SpliceImageList</a></h2>
2864 <div class="doc-section">
2866 <p>SpliceImageList() removes the images designated by offset and length from the list and replaces them with the specified list.</p></ol>
2868 <p>The format of the SpliceImageList method is:</p>
2871 Image *SpliceImageList(Image *images,const ssize_t offset,
2872 const size_t length,const Image *splices,
2873 ExceptionInfo *exception)
2876 <p>A description of each parameter follows:</p></ol>
2879 <ol><p>the image list.</p></ol>
2882 <ol><p>the position within the list.</p></ol>
2885 <ol><p>the length of the image list to remove.</p></ol>
2888 <ol><p>Replace the removed image list with this list.</p></ol>
2891 <ol><p>return any errors or warnings in this structure.</p></ol>
2894 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2895 _8c.html" target="source" name="Strip">Strip</a></h2>
2896 <div class="doc-section">
2898 <p>Strip() strips any whitespace or quotes from the beginning and end of a string of characters.</p></ol>
2900 <p>The format of the Strip method is:</p>
2903 void Strip(char *message)
2906 <p>A description of each parameter follows:</p></ol>
2909 <ol><p>Specifies an array of characters.</p></ol>
2912 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2913 _8c.html" target="source" name="SyncCacheView">SyncCacheView</a></h2>
2914 <div class="doc-section">
2916 <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>
2918 <p>Deprecated, replace with:</p>
2921 SyncCacheViewAuthenticPixels(cache_view,GetCacheViewException(cache_view));
2924 <p>The format of the SyncCacheView method is:</p>
2927 MagickBooleanType SyncCacheView(CacheView *cache_view)
2930 <p>A description of each parameter follows:</p></ol>
2933 <ol><p>the cache view.</p></ol>
2936 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2937 _8c.html" target="source" name="SyncCacheViewPixels">SyncCacheViewPixels</a></h2>
2938 <div class="doc-section">
2940 <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>
2942 <p>Deprecated, replace with:</p>
2945 SyncCacheViewAuthenticPixels(cache_view,GetCacheViewException(cache_view));
2948 <p>The format of the SyncCacheViewPixels method is:</p>
2951 MagickBooleanType SyncCacheViewPixels(CacheView *cache_view)
2954 <p>A description of each parameter follows:</p></ol>
2957 <ol><p>the cache view.</p></ol>
2960 <ol><p>return any errors or warnings in this structure.</p></ol>
2963 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2964 _8c.html" target="source" name="SyncImagePixels">SyncImagePixels</a></h2>
2965 <div class="doc-section">
2967 <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>
2969 <p>Deprecated, replace with:</p>
2972 SyncAuthenticPixels(image,&image->exception);
2975 <p>The format of the SyncImagePixels() method is:</p>
2978 MagickBooleanType SyncImagePixels(Image *image)
2981 <p>A description of each parameter follows:</p></ol>
2984 <ol><p>the image.</p></ol>
2987 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2988 _8c.html" target="source" name="TemporaryFilename">TemporaryFilename</a></h2>
2989 <div class="doc-section">
2991 <p>TemporaryFilename() replaces the contents of path by a unique path name.</p></ol>
2993 <p>The format of the TemporaryFilename method is:</p>
2996 void TemporaryFilename(char *path)
2999 <p>A description of each parameter follows.</p></ol>
3002 <ol><p>Specifies a pointer to an array of characters. The unique path name is returned in this array.</p></ol>
3005 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3006 _8c.html" target="source" name="ThresholdImage">ThresholdImage</a></h2>
3007 <div class="doc-section">
3009 <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>
3011 <p>The format of the ThresholdImage method is:</p>
3014 unsigned int ThresholdImage(Image *image,const double threshold)
3017 <p>A description of each parameter follows:</p></ol>
3020 <ol><p>the image.</p></ol>
3023 <ol><p>Define the threshold value</p></ol>
3026 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3027 _8c.html" target="source" name="ThresholdImageChannel">ThresholdImageChannel</a></h2>
3028 <div class="doc-section">
3030 <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>
3032 <p>The format of the ThresholdImageChannel method is:</p>
3035 unsigned int ThresholdImageChannel(Image *image,const char *threshold)
3038 <p>A description of each parameter follows:</p></ol>
3041 <ol><p>the image.</p></ol>
3044 <ol><p>define the threshold values.</p></ol>
3047 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3048 _8c.html" target="source" name="TransformHSL">TransformHSL</a></h2>
3049 <div class="doc-section">
3051 <p>TransformHSL() converts a (red, green, blue) to a (hue, saturation, lightness) triple.</p></ol>
3053 <p>The format of the TransformHSL method is:</p>
3056 void TransformHSL(const Quantum red,const Quantum green,
3057 const Quantum blue,double *hue,double *saturation,double *lightness)
3060 <p>A description of each parameter follows:</p></ol>
3062 <h5>red, green, blue</h5>
3063 <ol><p>A Quantum value representing the red, green, and blue component of a pixel..</p></ol>
3065 <h5>hue, saturation, lightness</h5>
3066 <ol><p>A pointer to a double value representing a component of the HSL color space.</p></ol>
3069 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3070 _8c.html" target="source" name="TranslateText">TranslateText</a></h2>
3071 <div class="doc-section">
3073 <p>TranslateText() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
3075 <p>Deprecated, replace with:</p>
3078 InterpretImageProperties(image_info,image,embed_text);
3081 <p>The format of the TranslateText method is:</p>
3084 char *TranslateText(const ImageInfo *image_info,Image *image,
3085 const char *embed_text)
3088 <p>A description of each parameter follows:</p></ol>
3091 <ol><p>the image info.</p></ol>
3094 <ol><p>the image.</p></ol>
3097 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
3100 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3101 _8c.html" target="source" name="TransparentImage">TransparentImage</a></h2>
3102 <div class="doc-section">
3104 <p>TransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
3106 <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>
3108 <p>The format of the TransparentImage method is:</p>
3111 MagickBooleanType TransparentImage(Image *image,
3112 const PixelPacket target,const Quantum opacity)
3115 <p>A description of each parameter follows:</p></ol>
3118 <ol><p>the image.</p></ol>
3121 <ol><p>the RGB value of the target color.</p></ol>
3124 <ol><p>the replacement opacity value.</p></ol>
3127 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3128 _8c.html" target="source" name="UnshiftImageList">UnshiftImageList</a></h2>
3129 <div class="doc-section">
3131 <p>UnshiftImageList() adds the image to the beginning of the list.</p></ol>
3133 <p>Deprecated, replace with:</p>
3136 PrependImageToList(images,CloneImageList(image,exception));
3139 <p>The format of the UnshiftImageList method is:</p>
3142 unsigned int UnshiftImageList(Image *images,const Image *image,
3143 ExceptionInfo *exception)
3146 <p>A description of each parameter follows:</p></ol>
3149 <ol><p>the image list.</p></ol>
3152 <ol><p>the image.</p></ol>
3155 <ol><p>return any errors or warnings in this structure.</p></ol>
3158 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
3159 _8c.html" target="source" name="ZoomImage">ZoomImage</a></h2>
3160 <div class="doc-section">
3162 <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>
3164 <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>
3166 <p>The format of the ZoomImage method is:</p>
3169 Image *ZoomImage(const Image *image,const size_t columns,
3170 const size_t rows,ExceptionInfo *exception)
3173 <p>A description of each parameter follows:</p></ol>
3176 <ol><p>the image.</p></ol>
3179 <ol><p>An integer that specifies the number of columns in the zoom image.</p></ol>
3182 <ol><p>An integer that specifies the number of rows in the scaled image.</p></ol>
3185 <ol><p>return any errors or warnings in this structure.</p></ol>
3191 <div id="linkbar">
\r
3192 <span id="linkbar-west"> </span>
\r
3193 <span id="linkbar-center">
\r
3194 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
3195 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
3197 <span id="linkbar-east"> </span>
\r
3199 <div class="footer">
\r
3200 <span id="footer-west">© 1999-2010 ImageMagick Studio LLC</span>
\r
3201 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
3203 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
3204 <script type="text/javascript">
\r
3205 var _gaq = _gaq || [];
\r
3206 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
3207 _gaq.push(['_trackPageview']);
\r
3210 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
3211 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
3212 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r