1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html version="-//W3C//DTD XHTML 1.1//EN"
\r
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
\r
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
\r
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
\r
9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
\r
10 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U="/>
\r
11 <title>ImageMagick: MagickCore, C API for ImageMagick: Deprecated Methods</title>
12 <meta http-equiv="Content-Language" content="en-US"/>
13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
15 <meta name="Application-name" content="ImageMagick"/>
16 <meta name="Description" content="Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images."/>
17 <meta name="Application-url" content="http://www.imagemagick.org"/>
18 <meta name="Generator" content="PHP"/>
19 <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"/>
20 <meta name="Rating" content="GENERAL"/>
21 <meta name="Robots" content="INDEX, FOLLOW"/>
22 <meta name="Generator" content="ImageMagick Studio LLC"/>
23 <meta name="Author" content="ImageMagick Studio LLC"/>
24 <meta name="Revisit-after" content="2 DAYS"/>
25 <meta name="Resource-type" content="document"/>
26 <meta name="Copyright" content="Copyright (c) 1999-2011 ImageMagick Studio LLC"/>
27 <meta name="Distribution" content="Global"/>
28 <link rel="icon" href="../../images/wand.png"/>
29 <link rel="shortcut icon" href="../../images/wand.ico" type="images/x-icon"/>
30 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
\r
31 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
\r
32 <style type="text/css" media="all">
\r
33 @import url("../../www/magick.css");
\r
35 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
\r
36 <script type="text/javascript" src="../fancybox/jquery.fancybox-1.3.4.pack.js"></script>
\r
37 <link rel="stylesheet" type="text/css" href="../fancybox/jquery.fancybox-1.3.4.css" media="screen" />
\r
38 <script type="text/javascript">
\r
39 $(document).ready(function() {
\r
40 $("a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox({
\r
41 'transitionIn' : 'elastic',
\r
42 'transitionOut' : 'elastic',
\r
43 'overlayShow' : false,
\r
50 <body id="www-imagemagick-org">
\r
51 <div class="titlebar">
\r
52 <div style="margin: 17px auto; float: left;">
\r
53 <script type="text/javascript">
\r
55 google_ad_client = "pub-3129977114552745";
\r
56 google_ad_slot = "5439289906";
\r
57 google_ad_width = 728;
\r
58 google_ad_height = 90;
\r
61 <script type="text/javascript"
\r
62 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
65 <a href="http://www.imagemagick.org/discourse-server/">
\r
66 <img src="../../images/logo.jpg"
\r
67 alt="ImageMagick Logo"
\r
68 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
\r
69 <a href="../../index.html">
\r
70 <img src="../../images/sprite.jpg"
\r
71 alt="ImageMagick Sprite"
\r
72 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
75 <div class="westbar">
\r
78 <a title="About ImageMagick" href="../../index.html">About ImageMagick</a>
80 <div class="sep"></div>
\r
82 <a title="Binary Releases" href="../../www/binary-releases.html">Binary Releases</a>
85 <a title="Binary Release: Unix" href="../../www/binary-releases.html#unix">Unix</a>
88 <a title="Binary Release: MacOS X" href="../../www/binary-releases.html#macosx">Mac OS X</a>
91 <a title="Binary Release: iPhone" href="../../www/binary-releases.html#iPhone">iPhone</a>
94 <a title="Binary Release: Windows" href="../../www/binary-releases.html#windows">Windows</a>
96 <div class="sep"></div>
\r
98 <a title="Command-line Tools" href="../../www/command-line-tools.html">Command-line Tools</a>
101 <a title="Command-line Tools: Processing" href="../../www/command-line-processing.html">Processing</a>
104 <a title="Command-line Tools: Options" href="../../www/command-line-options.html">Options</a>
107 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
110 <a title="Program Interfaces" href="../../www/api.html">Program Interfaces</a>
113 <a title="Program Interface: MagickWand" href="../../www/magick-wand.html">MagickWand</a>
116 <a title="Program Interface: MagickCore" href="../../www/magick-core.html">MagickCore</a>
119 <a title="Program Interface: PerlMagick" href="../../www/perl-magick.html">PerlMagick</a>
122 <a title="Program Interface: Magick++" href="../../www/magick++.html">Magick++</a>
124 <div class="sep"></div>
\r
126 <a title="Install from Source" href="../../www/install-source.html">Install from Source</a>
129 <a title="Install from Source: Unix" href="../../www/install-source.html#unix">Unix</a>
132 <a title="Install from Source: Windows" href="../../www/install-source.html#windows">Windows</a>
135 <a title="Resources" href="../../www/resources.html">Resources</a>
138 <a title="Architecture" href="../../www/architecture.html">Architecture</a>
141 <a title="Download" href="../../www/download.html">Download</a>
143 <div class="sep"></div>
\r
145 <a title="Search" href="../../www/search.html">Search</a>
147 <div class="sep"></div>
\r
149 <a title="Site Map" href="../../www/sitemap.html">Site Map</a>
152 <a title="Site Map: Links" href="../../www/links.html">Links</a>
154 <div class="sep"></div>
\r
156 <a title="Sponsors" href="../../www/sponsors.html">Sponsors:</a>
158 <a href="http://www.networkredux.com">
159 <img src="../../images/networkredux.png" alt="[sponsor]"
160 style="margin-top: 4px; margin-left: 4px; border: 0px; float: left;" /></a>
161 <div class="sponsbox">
162 <div class="sponsor">
163 <a title="Sponsor: Web Hosting Reviews" href="http://www.webhostingmasters.com">Web Hosting Reviews</a><!-- 201107011500 affliatelabel -->
165 <div class="sponsor">
166 <a title="Sponsor: Druckerei" href="http://www.allesdruck.de">Druckerei</a><!-- 201303011500 r.leo -->
168 <div class="sponsor">
169 <a title="Sponsor: Hotel München" href="http://www.messehotel-erb-muenchen.de">Hotel München</a><!-- 201111010450 cerb -->
171 <div class="sponsor">
172 <a title="Sponsor: Website Hosting" href="http://www.hostreviewgeeks.com">Website Hosting</a><!-- 201107010090 alexanian media -->
174 <div class="sponsor">
175 <a title="Sponsor: Best Web Hosting" href="http://webhostinggeeks.com">Best Web Hosting</a><!-- 201110010720 -->
177 <div class="sponsor">
178 <a title="Sponsor: Web Hosting Ratings" href="http://webhostingrating.com">Web Hosting Ratings</a><!-- 201110010720 -->
180 <div class="sponsor">
181 <a title="Sponsor: Flyer drucken" href="http://www.online-druck.biz">Flyer drucken</a><!-- 201109010900 Floeter-->
183 <div class="sponsor">
184 <a title="Sponsor: Druckerei" href="http://print24.com/de/">Druckerei</a><!-- 201110010720 -->
186 <div class="sponsor">
187 <a title="Sponsor: alaTest.com" href="http://alatest.com">alaTest.com</a><!-- 20110801000300 -->
193 <div class="eastbar">
\r
199 <h1>Module deprecate Methods</h1>
200 <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="#MedianFilterImage">MedianFilterImage</a> • <a href="#ModeImage">ModeImage</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="#ReduceNoiseImage">ReduceNoiseImage</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>
202 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireCacheViewIndexes">AcquireCacheViewIndexes</a></h2>
203 <div class="doc-section">
205 <p>AcquireCacheViewIndexes() returns the indexes associated with the specified view.</p>
207 <p>Deprecated, replace with:</p>
210 GetCacheViewVirtualIndexQueue(cache_view);
213 <p>The format of the AcquireCacheViewIndexes method is:</p>
216 const IndexPacket *AcquireCacheViewIndexes(const CacheView *cache_view)
219 <p>A description of each parameter follows:</p>
222 <p>the cache view.</p>
225 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireCacheViewPixels">AcquireCacheViewPixels</a></h2>
226 <div class="doc-section">
228 <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>
230 <p>Deprecated, replace with:</p>
233 GetCacheViewVirtualPixels(cache_view,x,y,columns,rows,exception);
236 <p>The format of the AcquireCacheViewPixels method is:</p>
239 const PixelPacket *AcquireCacheViewPixels(const CacheView *cache_view,
240 const ssize_t x,const ssize_t y,const size_t columns,
241 const size_t rows,ExceptionInfo *exception)
244 <p>A description of each parameter follows:</p>
247 <p>the cache view.</p>
249 <h5>x,y,columns,rows</h5>
250 <p>These values define the perimeter of a region of pixels.</p>
253 <p>return any errors or warnings in this structure.</p>
256 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireImagePixels">AcquireImagePixels</a></h2>
257 <div class="doc-section">
259 <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>
261 <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>
263 <p>If you plan to modify the pixels, use GetAuthenticPixels() instead.</p>
265 <p>Note, the AcquireImagePixels() and GetAuthenticPixels() methods are not thread-safe. In a threaded environment, use GetCacheViewVirtualPixels() or GetCacheViewAuthenticPixels() instead.</p>
267 <p>Deprecated, replace with:</p>
270 GetVirtualPixels(image,x,y,columns,rows,exception);
273 <p>The format of the AcquireImagePixels() method is:</p>
276 const PixelPacket *AcquireImagePixels(const Image *image,const ssize_t x,
277 const ssize_t y,const size_t columns,const size_t rows,
278 ExceptionInfo *exception)
281 <p>A description of each parameter follows:</p>
286 <h5>x,y,columns,rows</h5>
287 <p>These values define the perimeter of a region of pixels.</p>
290 <p>return any errors or warnings in this structure.</p>
293 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireIndexes">AcquireIndexes</a></h2>
294 <div class="doc-section">
296 <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>
298 <p>Deprecated, replace with:</p>
301 GetVirtualIndexQueue(image);
304 <p>The format of the AcquireIndexes() method is:</p>
307 const IndexPacket *AcquireIndexes(const Image *image)
310 <p>A description of each parameter follows:</p>
313 <p>AcquireIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p>
319 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireMemory">AcquireMemory</a></h2>
320 <div class="doc-section">
322 <p>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use.</p>
324 <p>The format of the AcquireMemory method is:</p>
327 void *AcquireMemory(const size_t size)
330 <p>A description of each parameter follows:</p>
333 <p>the size of the memory in bytes to allocate.</p>
336 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a></h2>
337 <div class="doc-section">
339 <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>
341 <p>Deprecated, replace with:</p>
344 GetOneCacheViewVirtualPixel(cache_view,x,y,pixel,exception);
347 <p>The format of the AcquireOneCacheViewPixel method is:</p>
350 MagickBooleanType AcquireOneCacheViewPixel(const CacheView *cache_view,
351 const ssize_t x,const ssize_t y,PixelPacket *pixel,ExceptionInfo *exception)
354 <p>A description of each parameter follows:</p>
357 <p>the cache view.</p>
360 <p>These values define the offset of the pixel.</p>
363 <p>return a pixel at the specified (x,y) location.</p>
366 <p>return any errors or warnings in this structure.</p>
369 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a></h2>
370 <div class="doc-section">
372 <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>
374 <p>Deprecated, replace with:</p>
377 GetOneCacheViewVirtualMethodPixel(cache_view,virtual_pixel_method,
378 x,y,pixel,exception);
381 <p>The format of the AcquireOneCacheViewPixel method is:</p>
384 MagickBooleanType AcquireOneCacheViewVirtualPixel(
385 const CacheView *cache_view,
386 const VirtualPixelMethod virtual_pixel_method,const ssize_t x,
387 const ssize_t y,PixelPacket *pixel,ExceptionInfo *exception)
390 <p>A description of each parameter follows:</p>
393 <p>the cache view.</p>
395 <h5>virtual_pixel_method</h5>
396 <p>the virtual pixel method.</p>
399 <p>These values define the offset of the pixel.</p>
402 <p>return a pixel at the specified (x,y) location.</p>
405 <p>return any errors or warnings in this structure.</p>
408 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireOneMagickPixel">AcquireOneMagickPixel</a></h2>
409 <div class="doc-section">
411 <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>
413 <p>Deprecated, replace with:</p>
416 MagickPixelPacket pixel;
417 GetOneVirtualMagickPixel(image,x,y,&pixel,exception);
420 <p>The format of the AcquireOneMagickPixel() method is:</p>
423 MagickPixelPacket AcquireOneMagickPixel(const Image image,const ssize_t x,
424 const ssize_t y,ExceptionInfo exception)
427 <p>A description of each parameter follows:</p>
433 <p>These values define the location of the pixel to return.</p>
436 <p>return any errors or warnings in this structure.</p>
439 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireOnePixel">AcquireOnePixel</a></h2>
440 <div class="doc-section">
442 <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>
444 <p>Deprecated, replace with:</p>
448 GetOneVirtualPixel(image,x,y,&pixel,exception);
451 <p>The format of the AcquireOnePixel() method is:</p>
454 PixelPacket AcquireOnePixel(const Image image,const ssize_t x,
455 const ssize_t y,ExceptionInfo exception)
458 <p>A description of each parameter follows:</p>
464 <p>These values define the location of the pixel to return.</p>
467 <p>return any errors or warnings in this structure.</p>
470 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquireOneVirtualPixel">AcquireOneVirtualPixel</a></h2>
471 <div class="doc-section">
473 <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>
475 <p>Deprecated, replace with:</p>
479 GetOneVirtualMethodPixel(image,virtual_pixel_method,x,y,&pixel,exception);
482 <p>The format of the AcquireOneVirtualPixel() method is:</p>
485 PixelPacket AcquireOneVirtualPixel(const Image image,
486 const VirtualPixelMethod virtual_pixel_method,const ssize_t x,
487 const ssize_t y,ExceptionInfo exception)
490 <p>A description of each parameter follows:</p>
492 <h5>virtual_pixel_method</h5>
493 <p>the virtual pixel method.</p>
499 <p>These values define the location of the pixel to return.</p>
502 <p>return any errors or warnings in this structure.</p>
505 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AcquirePixels">AcquirePixels</a></h2>
506 <div class="doc-section">
508 <p>AcquirePixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p>
510 <p>Deprecated, replace with:</p>
513 GetVirtualPixelQueue(image);
516 <p>The format of the AcquirePixels() method is:</p>
519 const PixelPacket *AcquirePixels(const Image image)
522 <p>A description of each parameter follows:</p>
528 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AffinityImage">AffinityImage</a></h2>
529 <div class="doc-section">
531 <p>AffinityImage() replaces the colors of an image with the closest color from a reference image.</p>
533 <p>Deprecated, replace with:</p>
536 RemapImage(quantize_info,image,affinity_image);
539 <p>The format of the AffinityImage method is:</p>
542 MagickBooleanType AffinityImage(const QuantizeInfo *quantize_info,
543 Image *image,const Image *affinity_image)
546 <p>A description of each parameter follows:</p>
548 <h5>quantize_info</h5>
549 <p>Specifies a pointer to an QuantizeInfo structure.</p>
554 <h5>affinity_image</h5>
555 <p>the reference image.</p>
558 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AffinityImages">AffinityImages</a></h2>
559 <div class="doc-section">
561 <p>AffinityImages() replaces the colors of a sequence of images with the closest color from a reference image.</p>
563 <p>Deprecated, replace with:</p>
566 RemapImages(quantize_info,images,affinity_image);
569 <p>The format of the AffinityImage method is:</p>
572 MagickBooleanType AffinityImages(const QuantizeInfo *quantize_info,
573 Image *images,Image *affinity_image)
576 <p>A description of each parameter follows:</p>
578 <h5>quantize_info</h5>
579 <p>Specifies a pointer to an QuantizeInfo structure.</p>
582 <p>the image sequence.</p>
584 <h5>affinity_image</h5>
585 <p>the reference image.</p>
588 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AllocateImage">AllocateImage</a></h2>
589 <div class="doc-section">
591 <p>AllocateImage() returns a pointer to an image structure initialized to default values.</p>
593 <p>Deprecated, replace with:</p>
596 AcquireImage(image_info);
599 <p>The format of the AllocateImage method is:</p>
602 Image *AllocateImage(const ImageInfo *image_info)
605 <p>A description of each parameter follows:</p>
608 <p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p>
611 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AllocateImageColormap">AllocateImageColormap</a></h2>
612 <div class="doc-section">
614 <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>
616 <p>Deprecated, replace with:</p>
619 AcquireImageColormap(image,colors);
622 <p>The format of the AllocateImageColormap method is:</p>
625 MagickBooleanType AllocateImageColormap(Image *image,
629 <p>A description of each parameter follows:</p>
635 <p>the number of colors in the image colormap.</p>
638 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AllocateNextImage">AllocateNextImage</a></h2>
639 <div class="doc-section">
641 <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>
643 <p>Deprecated, replace with:</p>
646 AcquireNextImage(image_info,image);
649 <p>The format of the AllocateNextImage method is:</p>
652 void AllocateNextImage(const ImageInfo *image_info,Image *image)
655 <p>A description of each parameter follows:</p>
658 <p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p>
664 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AllocateString">AllocateString</a></h2>
665 <div class="doc-section">
667 <p>AllocateString() allocates memory for a string and copies the source string to that memory location (and returns it).</p>
669 <p>The format of the AllocateString method is:</p>
672 char *AllocateString(const char *source)
675 <p>A description of each parameter follows:</p>
678 <p>A character string.</p>
681 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="AverageImages">AverageImages</a></h2>
682 <div class="doc-section">
684 <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>
686 <p>Deprecated, replace with:</p>
689 EvaluateImages(images,MeanEvaluateOperator,exception);
692 <p>The format of the AverageImages method is:</p>
695 Image *AverageImages(Image *images,ExceptionInfo *exception)
698 <p>A description of each parameter follows:</p>
701 <p>the image sequence.</p>
704 <p>return any errors or warnings in this structure.</p>
707 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ChannelThresholdImage">ChannelThresholdImage</a></h2>
708 <div class="doc-section">
710 <p>ChannelThresholdImage() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p>
712 <p>The format of the ChannelThresholdImage method is:</p>
715 unsigned int ChannelThresholdImage(Image *image,const char *level)
718 <p>A description of each parameter follows:</p>
724 <p>define the threshold values.</p>
727 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ClipPathImage">ClipPathImage</a></h2>
728 <div class="doc-section">
730 <p>ClipPathImage() sets the image clip mask based any clipping path information if it exists.</p>
732 <p>Deprecated, replace with:</p>
735 ClipImagePath(image,pathname,inside);
738 <p>The format of the ClipImage method is:</p>
741 MagickBooleanType ClipPathImage(Image *image,const char *pathname,
742 const MagickBooleanType inside)
745 <p>A description of each parameter follows:</p>
751 <p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p>
754 <p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p>
757 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="CloneImageAttributes">CloneImageAttributes</a></h2>
758 <div class="doc-section">
760 <p>CloneImageAttributes() clones one or more image attributes.</p>
762 <p>Deprecated, replace with:</p>
765 CloneImageProperties(image,clone_image);
768 <p>The format of the CloneImageAttributes method is:</p>
771 MagickBooleanType CloneImageAttributes(Image *image,
772 const Image *clone_image)
775 <p>A description of each parameter follows:</p>
781 <p>the clone image.</p>
784 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="CloneMemory">CloneMemory</a></h2>
785 <div class="doc-section">
787 <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>
789 <p>The format of the CloneMemory method is:</p>
792 void *CloneMemory(void *destination,const void *source,
796 <p>A description of each parameter follows:</p>
799 <p>the destination.</p>
805 <p>the size of the memory in bytes to allocate.</p>
808 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="CloseCacheView">CloseCacheView</a></h2>
809 <div class="doc-section">
811 <p>CloseCacheView() closes the specified view returned by a previous call to OpenCacheView().</p>
813 <p>Deprecated, replace with:</p>
816 DestroyCacheView(view_info);
819 <p>The format of the CloseCacheView method is:</p>
822 CacheView *CloseCacheView(CacheView *view_info)
825 <p>A description of each parameter follows:</p>
828 <p>the address of a structure of type CacheView.</p>
831 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ColorFloodfill">ColorFloodfill</a></h2>
832 <div class="doc-section">
834 <p>ColorFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.</p>
836 <p>By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.</p>
838 <p>The format of the ColorFloodfillImage method is:</p>
841 MagickBooleanType ColorFloodfillImage(Image *image,
842 const DrawInfo *draw_info,const PixelPacket target,
843 const ssize_t x_offset,const ssize_t y_offset,const PaintMethod method)
846 <p>A description of each parameter follows:</p>
852 <p>the draw info.</p>
855 <p>the RGB value of the target color.</p>
858 <p>the starting location of the operation.</p>
861 <p>Choose either FloodfillMethod or FillToBorderMethod.</p>
864 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="DeleteImageAttribute">DeleteImageAttribute</a></h2>
865 <div class="doc-section">
867 <p>DeleteImageAttribute() deletes an attribute from the image.</p>
869 <p>Deprecated, replace with:</p>
872 DeleteImageProperty(image,key);
875 <p>The format of the DeleteImageAttribute method is:</p>
878 MagickBooleanType DeleteImageAttribute(Image *image,const char *key)
881 <p>A description of each parameter follows:</p>
884 <p>the image info.</p>
887 <p>the image key.</p>
890 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="DeleteImageList">DeleteImageList</a></h2>
891 <div class="doc-section">
893 <p>DeleteImageList() deletes an image at the specified position in the list.</p>
895 <p>The format of the DeleteImageList method is:</p>
898 unsigned int DeleteImageList(Image *images,const ssize_t offset)
901 <p>A description of each parameter follows:</p>
904 <p>the image list.</p>
907 <p>the position within the list.</p>
910 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="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>
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>
932 <p>the registry id.</p>
935 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="DescribeImage">DescribeImage</a></h2>
936 <div class="doc-section">
938 <p>DescribeImage() describes an image by printing its attributes to the file. Attributes include the image width, height, size, and others.</p>
940 <p>Deprecated, replace with:</p>
943 IdentifyImage(image,file,verbose);
946 <p>The format of the DescribeImage method is:</p>
949 MagickBooleanType DescribeImage(Image *image,FILE *file,
950 const MagickBooleanType verbose)
953 <p>A description of each parameter follows:</p>
959 <p>the file, typically stdout.</p>
962 <p>A value other than zero prints more detailed information about the image.</p>
965 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="DestroyImageAttributes">DestroyImageAttributes</a></h2>
966 <div class="doc-section">
968 <p>DestroyImageAttributes() deallocates memory associated with the image attribute list.</p>
970 <p>The format of the DestroyImageAttributes method is:</p>
973 DestroyImageAttributes(Image *image)
976 <p>A description of each parameter follows:</p>
982 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="DestroyImages">DestroyImages</a></h2>
983 <div class="doc-section">
985 <p>DestroyImages() destroys an image list.</p>
987 <p>Deprecated, replace with:</p>
990 DestroyImageList(image);
993 <p>The format of the DestroyImages method is:</p>
996 void DestroyImages(Image *image)
999 <p>A description of each parameter follows:</p>
1002 <p>the image sequence.</p>
1005 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="DestroyMagick">DestroyMagick</a></h2>
1006 <div class="doc-section">
1008 <p>DestroyMagick() destroys the ImageMagick environment.</p>
1010 <p>Deprecated, replace with:</p>
1013 MagickCoreTerminus();
1016 <p>The format of the DestroyMagick function is:</p>
1023 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="DispatchImage">DispatchImage</a></h2>
1024 <div class="doc-section">
1026 <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>
1028 <p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
1031 DispatchImage(image,0,0,640,1,"RGB",CharPixel,pixels,exception);
1034 <p>Deprecated, replace with:</p>
1037 ExportImagePixels(image,x_offset,y_offset,columns,rows,map,type,pixels,
1041 <p>The format of the DispatchImage method is:</p>
1044 unsigned int DispatchImage(const Image *image,const ssize_t x_offset,
1045 const ssize_t y_offset,const size_t columns,
1046 const size_t rows,const char *map,const StorageType type,
1047 void *pixels,ExceptionInfo *exception)
1050 <p>A description of each parameter follows:</p>
1055 <h5>x_offset, y_offset, columns, rows</h5>
1056 <p>These values define the perimeter of a region of pixels you want to extract.</p>
1059 <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>
1062 <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>
1065 <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>
1068 <p>return any errors or warnings in this structure.</p>
1071 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a></h2>
1072 <div class="doc-section">
1074 <p>ExtractSubimageFromImageImage() extracts a region of the image that most closely resembles the reference.</p>
1076 <p>The format of the ExtractSubimageFromImageImage method is:</p>
1079 Image *ExtractSubimageFromImage(const Image *image,
1080 const Image *reference,ExceptionInfo *exception)
1083 <p>A description of each parameter follows:</p>
1089 <p>find an area of the image that closely resembles this image.</p>
1092 <p>return any errors or warnings in this structure.</p>
1095 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="FlattenImages">FlattenImages</a></h2>
1096 <div class="doc-section">
1098 <p>FlattenImages() Obsolete Function: Use MergeImageLayers() instead.</p>
1100 <p>Deprecated, replace with:</p>
1103 MergeImageLayers(image,FlattenLayer,exception);
1106 <p>The format of the FlattenImage method is:</p>
1109 Image *FlattenImage(Image *image,ExceptionInfo *exception)
1112 <p>A description of each parameter follows:</p>
1115 <p>the image sequence.</p>
1118 <p>return any errors or warnings in this structure.</p>
1121 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="FormatImageAttribute">FormatImageAttribute</a></h2>
1122 <div class="doc-section">
1124 <p>FormatImageAttribute() permits formatted key/value pairs to be saved as an image attribute.</p>
1126 <p>The format of the FormatImageAttribute method is:</p>
1129 MagickBooleanType FormatImageAttribute(Image *image,const char *key,
1130 const char *format,...)
1133 <p>A description of each parameter follows.</p>
1139 <p>The attribute key.</p>
1142 <p>A string describing the format to use to write the remaining arguments.</p>
1145 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="FormatString">FormatString</a></h2>
1146 <div class="doc-section">
1148 <p>FormatString() prints formatted output of a variable argument list.</p>
1150 <p>The format of the FormatString method is:</p>
1153 void FormatString(char *string,const char *format,...)
1156 <p>A description of each parameter follows.</p>
1159 <p>Method FormatString returns the formatted string in this character buffer.</p>
1162 <p>A string describing the format to use to write the remaining arguments.</p>
1165 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetConfigureBlob">GetConfigureBlob</a></h2>
1166 <div class="doc-section">
1168 <p>GetConfigureBlob() returns the specified configure file as a blob.</p>
1170 <p>The format of the GetConfigureBlob method is:</p>
1173 void *GetConfigureBlob(const char *filename,ExceptionInfo *exception)
1176 <p>A description of each parameter follows:</p>
1179 <p>the configure file name.</p>
1182 <p>return the full path information of the configure file.</p>
1185 <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>
1188 <p>return any errors or warnings in this structure.</p>
1191 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetCacheView">GetCacheView</a></h2>
1192 <div class="doc-section">
1194 <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>
1196 <p>Deprecated, replace with:</p>
1199 GetCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
1200 GetCacheViewException(cache_view));
1203 <p>The format of the GetCacheView method is:</p>
1206 PixelPacket *GetCacheView(CacheView *cache_view,const ssize_t x,
1207 const ssize_t y,const size_t columns,const size_t rows)
1210 <p>A description of each parameter follows:</p>
1213 <p>the address of a structure of type CacheView.</p>
1215 <h5>x,y,columns,rows</h5>
1216 <p>These values define the perimeter of a region of pixels.</p>
1219 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetCacheViewIndexes">GetCacheViewIndexes</a></h2>
1220 <div class="doc-section">
1222 <p>GetCacheViewIndexes() returns the indexes associated with the specified view.</p>
1224 <p>Deprecated, replace with:</p>
1227 GetCacheViewAuthenticIndexQueue(cache_view);
1230 <p>The format of the GetCacheViewIndexes method is:</p>
1233 IndexPacket *GetCacheViewIndexes(CacheView *cache_view)
1236 <p>A description of each parameter follows:</p>
1239 <p>the cache view.</p>
1242 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetCacheViewPixels">GetCacheViewPixels</a></h2>
1243 <div class="doc-section">
1245 <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>
1247 <p>Deprecated, replace with:</p>
1250 GetCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
1251 GetCacheViewException(cache_view));
1254 <p>The format of the GetCacheViewPixels method is:</p>
1257 PixelPacket *GetCacheViewPixels(CacheView *cache_view,const ssize_t x,
1258 const ssize_t y,const size_t columns,const size_t rows)
1261 <p>A description of each parameter follows:</p>
1264 <p>the cache view.</p>
1266 <h5>x,y,columns,rows</h5>
1267 <p>These values define the perimeter of a region of pixels.</p>
1270 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImageAttribute">GetImageAttribute</a></h2>
1271 <div class="doc-section">
1273 <p>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL.</p>
1275 <p>The format of the GetImageAttribute method is:</p>
1278 const ImageAttribute *GetImageAttribute(const Image *image,
1282 <p>A description of each parameter follows:</p>
1288 <p>These character strings are the name of an image attribute to return.</p>
1291 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImageClippingPathAttribute">GetImageClippingPathAttribute</a></h2>
1292 <div class="doc-section">
1294 <p>GetImageClippingPathAttribute() searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</p>
1296 <p>Deprecated, replace with:</p>
1299 GetImageAttribute(image,"8BIM:1999,2998");
1302 <p>The format of the GetImageClippingPathAttribute method is:</p>
1305 const ImageAttribute *GetImageClippingPathAttribute(Image *image)
1308 <p>A description of each parameter follows:</p>
1311 <p>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</p>
1317 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImageFromMagickRegistry">GetImageFromMagickRegistry</a></h2>
1318 <div class="doc-section">
1320 <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>
1322 <p>Deprecated, replace with:</p>
1325 GetImageRegistry(ImageRegistryType,name,exception);
1328 <p>The format of the GetImageFromMagickRegistry method is:</p>
1331 Image *GetImageFromMagickRegistry(const char *name,ssize_t *id,
1332 ExceptionInfo *exception)
1335 <p>A description of each parameter follows:</p>
1338 <p>the name of the image to retrieve from the registry.</p>
1341 <p>the registry id.</p>
1344 <p>return any errors or warnings in this structure.</p>
1347 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetMagickRegistry">GetMagickRegistry</a></h2>
1348 <div class="doc-section">
1350 <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>
1352 <p>The format of the GetMagickRegistry method is:</p>
1355 const void *GetMagickRegistry(const ssize_t id,RegistryType *type,
1356 size_t *length,ExceptionInfo *exception)
1359 <p>A description of each parameter follows:</p>
1362 <p>the registry id.</p>
1365 <p>the registry type.</p>
1368 <p>the blob length in number of bytes.</p>
1371 <p>return any errors or warnings in this structure.</p>
1374 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImageGeometry">GetImageGeometry</a></h2>
1375 <div class="doc-section">
1377 <p>GetImageGeometry() returns a region as defined by the geometry string with respect to the image and its gravity.</p>
1379 <p>Deprecated, replace with:</p>
1382 if (size_to_fit != MagickFalse)
1383 ParseRegionGeometry(image,geometry,region_info,&image->exception); else
1384 ParsePageGeometry(image,geometry,region_info,&image->exception);
1387 <p>The format of the GetImageGeometry method is:</p>
1390 int GetImageGeometry(Image *image,const char *geometry,
1391 const unsigned int size_to_fit,RectangeInfo *region_info)
1394 <p>A description of each parameter follows:</p>
1397 <p>Method GetImageGeometry returns a bitmask that indicates which of the four values were located in the geometry string.</p>
1400 <p>The geometry (e.g. 100x100+10+10).</p>
1402 <h5>size_to_fit</h5>
1403 <p>A value other than 0 means to scale the region so it fits within the specified width and height.</p>
1405 <h5>region_info</h5>
1406 <p>the region as defined by the geometry string with respect to the image and its gravity.</p>
1409 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImageList">GetImageList</a></h2>
1410 <div class="doc-section">
1412 <p>GetImageList() returns an image at the specified position in the list.</p>
1414 <p>Deprecated, replace with:</p>
1417 CloneImage(GetImageFromList(images,(ssize_t) offset),0,0,MagickTrue,
1421 <p>The format of the GetImageList method is:</p>
1424 Image *GetImageList(const Image *images,const ssize_t offset,
1425 ExceptionInfo *exception)
1428 <p>A description of each parameter follows:</p>
1431 <p>the image list.</p>
1434 <p>the position within the list.</p>
1437 <p>return any errors or warnings in this structure.</p>
1440 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImageListIndex">GetImageListIndex</a></h2>
1441 <div class="doc-section">
1443 <p>GetImageListIndex() returns the position in the list of the specified image.</p>
1445 <p>Deprecated, replace with:</p>
1448 GetImageIndexInList(images);
1451 <p>The format of the GetImageListIndex method is:</p>
1454 ssize_t GetImageListIndex(const Image *images)
1457 <p>A description of each parameter follows:</p>
1460 <p>the image list.</p>
1463 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImageListSize">GetImageListSize</a></h2>
1464 <div class="doc-section">
1466 <p>GetImageListSize() returns the number of images in the list.</p>
1468 <p>Deprecated, replace with:</p>
1471 GetImageListLength(images);
1474 <p>The format of the GetImageListSize method is:</p>
1477 size_t GetImageListSize(const Image *images)
1480 <p>A description of each parameter follows:</p>
1483 <p>the image list.</p>
1486 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetImagePixels">GetImagePixels</a></h2>
1487 <div class="doc-section">
1489 <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>
1491 <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>
1493 <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>
1495 <p>Deprecated, replace with:</p>
1498 GetAuthenticPixels(image,x,y,columns,rows,&image->exception);
1501 <p>The format of the GetImagePixels() method is:</p>
1504 PixelPacket *GetImagePixels(Image *image,const ssize_t x,const ssize_t y,
1505 const size_t columns,const size_t rows)
1508 <p>A description of each parameter follows:</p>
1513 <h5>x,y,columns,rows</h5>
1514 <p>These values define the perimeter of a region of pixels.</p>
1517 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetIndexes">GetIndexes</a></h2>
1518 <div class="doc-section">
1520 <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>
1522 <p>Deprecated, replace with:</p>
1525 GetAuthenticIndexQueue(image);
1528 <p>The format of the GetIndexes() method is:</p>
1531 IndexPacket *GetIndexes(const Image *image)
1534 <p>A description of each parameter follows:</p>
1537 <p>GetIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p>
1543 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetNextImage">GetNextImage</a></h2>
1544 <div class="doc-section">
1546 <p>GetNextImage() returns the next image in a list.</p>
1548 <p>Deprecated, replace with:</p>
1551 GetNextImageInList(images);
1554 <p>The format of the GetNextImage method is:</p>
1557 Image *GetNextImage(const Image *images)
1560 <p>A description of each parameter follows:</p>
1563 <p>the image list.</p>
1566 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetNextImageAttribute">GetNextImageAttribute</a></h2>
1567 <div class="doc-section">
1569 <p>GetNextImageAttribute() gets the next image attribute.</p>
1571 <p>Deprecated, replace with:</p>
1574 const char *property;
1575 property=GetNextImageProperty(image);
1576 if (property != (const char *) NULL)
1577 GetImageAttribute(image,property);
1580 <p>The format of the GetNextImageAttribute method is:</p>
1583 const ImageAttribute *GetNextImageAttribute(const Image *image)
1586 <p>A description of each parameter follows:</p>
1592 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetNumberScenes">GetNumberScenes</a></h2>
1593 <div class="doc-section">
1595 <p>GetNumberScenes() returns the number of images in the list.</p>
1597 <p>Deprecated, replace with:</p>
1600 GetImageListLength(image);
1603 <p>The format of the GetNumberScenes method is:</p>
1606 unsigned int GetNumberScenes(const Image *images)
1609 <p>A description of each parameter follows:</p>
1612 <p>the image list.</p>
1615 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetOnePixel">GetOnePixel</a></h2>
1616 <div class="doc-section">
1618 <p>GetOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p>
1620 <p>Deprecated, replace with:</p>
1623 GetOneAuthenticPixel(image,x,y,&pixel,&image->exception);
1626 <p>The format of the GetOnePixel() method is:</p>
1629 PixelPacket GetOnePixel(const Image image,const ssize_t x,const ssize_t y)
1632 <p>A description of each parameter follows:</p>
1638 <p>These values define the location of the pixel to return.</p>
1641 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetPixels">GetPixels</a></h2>
1642 <div class="doc-section">
1644 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p>
1646 <p>Deprecated, replace with:</p>
1649 GetAuthenticPixelQueue(image);
1652 <p>The format of the GetPixels() method is:</p>
1655 PixelPacket *GetPixels(const Image image)
1658 <p>A description of each parameter follows:</p>
1661 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p>
1667 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="GetPreviousImage">GetPreviousImage</a></h2>
1668 <div class="doc-section">
1670 <p>GetPreviousImage() returns the previous image in a list.</p>
1672 <p>Deprecated, replace with:</p>
1675 GetPreviousImageInList(images));
1678 <p>The format of the GetPreviousImage method is:</p>
1681 Image *GetPreviousImage(const Image *images)
1684 <p>A description of each parameter follows:</p>
1687 <p>the image list.</p>
1690 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="HSLTransform">HSLTransform</a></h2>
1691 <div class="doc-section">
1693 <p>HSLTransform() converts a (hue, saturation, lightness) to a (red, green, blue) triple.</p>
1695 <p>The format of the HSLTransformImage method is:</p>
1698 void HSLTransform(const double hue,const double saturation,
1699 const double lightness,Quantum *red,Quantum *green,Quantum *blue)
1702 <p>A description of each parameter follows:</p>
1704 <h5>hue, saturation, lightness</h5>
1705 <p>A double value representing a component of the HSL color space.</p>
1707 <h5>red, green, blue</h5>
1708 <p>A pointer to a pixel component of type Quantum.</p>
1711 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="IdentityAffine">IdentityAffine</a></h2>
1712 <div class="doc-section">
1714 <p>IdentityAffine() initializes the affine transform to the identity matrix.</p>
1716 <p>The format of the IdentityAffine method is:</p>
1719 IdentityAffine(AffineMatrix *affine)
1722 <p>A description of each parameter follows:</p>
1725 <p>A pointer the affine transform of type AffineMatrix.</p>
1728 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="InitializeMagick">InitializeMagick</a></h2>
1729 <div class="doc-section">
1731 <p>InitializeMagick() initializes the ImageMagick environment.</p>
1733 <p>Deprecated, replace with:</p>
1736 MagickCoreGenesis(path,MagickFalse);
1739 <p>The format of the InitializeMagick function is:</p>
1742 InitializeMagick(const char *path)
1745 <p>A description of each parameter follows:</p>
1748 <p>the execution path of the current ImageMagick client.</p>
1751 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="InterpolatePixelColor">InterpolatePixelColor</a></h2>
1752 <div class="doc-section">
1754 <p>InterpolatePixelColor() applies bi-linear or tri-linear interpolation between a pixel and it's neighbors.</p>
1756 <p>The format of the InterpolatePixelColor method is:</p>
1759 MagickPixelPacket InterpolatePixelColor(const Image *image,
1760 CacheView *view_info,InterpolatePixelMethod method,const double x,
1761 const double y,ExceptionInfo *exception)
1764 <p>A description of each parameter follows:</p>
1770 <p>the image cache view.</p>
1773 <p>the type of pixel color interpolation.</p>
1776 <p>A double representing the current (x,y) position of the pixel.</p>
1779 <p>return any errors or warnings in this structure.</p>
1782 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="InterpretImageAttributes">InterpretImageAttributes</a></h2>
1783 <div class="doc-section">
1785 <p>InterpretImageAttributes() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p>
1787 <p>Deprecated, replace with:</p>
1790 InterpretImageProperties(image_info,image,embed_text);
1793 <p>The format of the InterpretImageAttributes method is:</p>
1796 char *InterpretImageAttributes(const ImageInfo *image_info,Image *image,
1797 const char *embed_text)
1800 <p>A description of each parameter follows:</p>
1803 <p>the image info.</p>
1809 <p>the address of a character string containing the embedded formatting characters.</p>
1812 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="LevelImageColor">LevelImageColor</a></h2>
1813 <div class="doc-section">
1815 <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 separately.</p>
1817 <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>
1819 <p>Deprecated, replace with:</p>
1822 LevelColorsImageChannel(image,channel,black_color,white_color,invert);
1825 <p>The format of the LevelImageColors method is:</p>
1828 MagickBooleanType LevelImageColors(Image *image,const ChannelType channel,
1829 const MagickPixelPacket *black_color,const MagickPixelPacket *white_color,
1830 const MagickBooleanType invert)
1833 <p>A description of each parameter follows:</p>
1841 <h5>black_color</h5>
1842 <p>The color to map black to/from</p>
1844 <h5>white_point</h5>
1845 <p>The color to map white to/from</p>
1848 <p>if true map the colors (levelize), rather than from (level)</p>
1851 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="LiberateMemory">LiberateMemory</a></h2>
1852 <div class="doc-section">
1854 <p>LiberateMemory() frees memory that has already been allocated, and NULL's the pointer to it.</p>
1856 <p>The format of the LiberateMemory method is:</p>
1859 void LiberateMemory(void **memory)
1862 <p>A description of each parameter follows:</p>
1865 <p>A pointer to a block of memory to free for reuse.</p>
1868 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="LiberateSemaphoreInfo">LiberateSemaphoreInfo</a></h2>
1869 <div class="doc-section">
1871 <p>LiberateSemaphoreInfo() relinquishes a semaphore.</p>
1873 <p>Deprecated, replace with:</p>
1876 UnlockSemaphoreInfo(*semaphore_info);
1879 <p>The format of the LiberateSemaphoreInfo method is:</p>
1882 LiberateSemaphoreInfo(void **semaphore_info)
1885 <p>A description of each parameter follows:</p>
1887 <h5>semaphore_info</h5>
1888 <p>Specifies a pointer to an SemaphoreInfo structure.</p>
1891 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MagickIncarnate">MagickIncarnate</a></h2>
1892 <div class="doc-section">
1894 <p>MagickIncarnate() initializes the ImageMagick environment.</p>
1896 <p>Deprecated, replace with:</p>
1899 MagickCoreGenesis(path,MagickFalse);
1902 <p>The format of the MagickIncarnate function is:</p>
1905 MagickIncarnate(const char *path)
1908 <p>A description of each parameter follows:</p>
1911 <p>the execution path of the current ImageMagick client.</p>
1914 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MagickMonitor">MagickMonitor</a></h2>
1915 <div class="doc-section">
1917 <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>
1919 <p>The format of the MagickMonitor method is:</p>
1922 MagickBooleanType MagickMonitor(const char *text,
1923 const MagickOffsetType offset,const MagickSizeType span,
1927 <p>A description of each parameter follows:</p>
1930 <p>the position relative to the span parameter which represents how much progress has been made toward completing a task.</p>
1933 <p>the span relative to completing a task.</p>
1935 <h5>client_data</h5>
1936 <p>the client data.</p>
1939 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MapImage">MapImage</a></h2>
1940 <div class="doc-section">
1942 <p>MapImage() replaces the colors of an image with the closest color from a reference image.</p>
1944 <p>Deprecated, replace with:</p>
1947 QuantizeInfo quantize_info;
1948 GetQuantizeInfo(&quantize_info);
1949 quantize_info.dither=dither;
1950 RemapImage(&quantize_info,image,map_image);
1953 <p>The format of the MapImage method is:</p>
1956 MagickBooleanType MapImage(Image *image,const Image *map_image,
1957 const MagickBooleanType dither)
1960 <p>A description of each parameter follows:</p>
1963 <p>Specifies a pointer to an Image structure.</p>
1966 <p>the image. Reduce image to a set of colors represented by this image.</p>
1969 <p>Set this integer value to something other than zero to dither the mapped image.</p>
1972 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MapImages">MapImages</a></h2>
1973 <div class="doc-section">
1975 <p>MapImages() replaces the colors of a sequence of images with the closest color from a reference image.</p>
1977 <p>Deprecated, replace with:</p>
1980 QuantizeInfo quantize_info;
1981 GetQuantizeInfo(&quantize_info);
1982 quantize_info.dither=dither;
1983 RemapImages(&quantize_info,images,map_image);
1986 <p>The format of the MapImage method is:</p>
1989 MagickBooleanType MapImages(Image *images,Image *map_image,
1990 const MagickBooleanType dither)
1993 <p>A description of each parameter follows:</p>
1996 <p>Specifies a pointer to a set of Image structures.</p>
1999 <p>the image. Reduce image to a set of colors represented by this image.</p>
2002 <p>Set this integer value to something other than zero to dither the quantized image.</p>
2005 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MatteFloodfill">MatteFloodfill</a></h2>
2006 <div class="doc-section">
2008 <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>
2010 <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>
2012 <p>The format of the MatteFloodfillImage method is:</p>
2015 MagickBooleanType MatteFloodfillImage(Image *image,
2016 const PixelPacket target,const Quantum opacity,const ssize_t x_offset,
2017 const ssize_t y_offset,const PaintMethod method)
2020 <p>A description of each parameter follows:</p>
2026 <p>the RGB value of the target color.</p>
2029 <p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p>
2032 <p>the starting location of the operation.</p>
2035 <p>Choose either FloodfillMethod or FillToBorderMethod.</p>
2038 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MaximumImages">MaximumImages</a></h2>
2039 <div class="doc-section">
2041 <p>MaximumImages() returns the maximum intensity of an image sequence.</p>
2043 <p>Deprecated, replace with:</p>
2046 EvaluateImages(images,MinEvaluateOperator,exception);
2049 <p>The format of the MaxImages method is:</p>
2052 Image *MaximumImages(Image *images,ExceptionInfo *exception)
2055 <p>A description of each parameter follows:</p>
2058 <p>the image sequence.</p>
2061 <p>return any errors or warnings in this structure.</p>
2064 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MinimumImages">MinimumImages</a></h2>
2065 <div class="doc-section">
2067 <p>MinimumImages() returns the minimum intensity of an image sequence.</p>
2069 <p>Deprecated, replace with:</p>
2072 EvaluateImages(images,MinEvaluateOperator,exception);
2075 <p>The format of the MinimumImages method is:</p>
2078 Image *MinimumImages(Image *images,ExceptionInfo *exception)
2081 <p>A description of each parameter follows:</p>
2084 <p>the image sequence.</p>
2087 <p>return any errors or warnings in this structure.</p>
2090 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MedianFilterImage">MedianFilterImage</a></h2>
2091 <div class="doc-section">
2093 <p>MedianFilterImage() applies a digital filter that improves the quality of a noisy image. Each pixel is replaced by the median in a set of neighboring pixels as defined by radius.</p>
2095 <p>The algorithm was contributed by Mike Edmonds and implements an insertion sort for selecting median color-channel values. For more on this algorithm see "Skip Lists: A probabilistic Alternative to Balanced Trees" by William Pugh in the June 1990 of Communications of the ACM.</p>
2097 <p>The format of the MedianFilterImage method is:</p>
2100 Image *MedianFilterImage(const Image *image,const double radius,
2101 ExceptionInfo *exception)
2104 <p>A description of each parameter follows:</p>
2110 <p>the radius of the pixel neighborhood.</p>
2113 <p>return any errors or warnings in this structure.</p>
2116 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ModeImage">ModeImage</a></h2>
2117 <div class="doc-section">
2119 <p>ModeImage() makes each pixel the 'predominate color' of the neighborhood of the specified radius.</p>
2121 <p>The format of the ModeImage method is:</p>
2124 Image *ModeImage(const Image *image,const double radius,
2125 ExceptionInfo *exception)
2128 <p>A description of each parameter follows:</p>
2134 <p>the radius of the pixel neighborhood.</p>
2137 <p>return any errors or warnings in this structure.</p>
2140 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="MosaicImages">MosaicImages</a></h2>
2141 <div class="doc-section">
2143 <p>MosaicImages() Obsolete Function: Use MergeImageLayers() instead.</p>
2145 <p>Deprecated, replace with:</p>
2148 MergeImageLayers(image,MosaicLayer,exception);
2151 <p>The format of the MosaicImage method is:</p>
2154 Image *MosaicImages(const Image *image,ExceptionInfo *exception)
2157 <p>A description of each parameter follows:</p>
2160 <p>the image list to be composited together</p>
2163 <p>return any errors or warnings in this structure.</p>
2166 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="OpaqueImage">OpaqueImage</a></h2>
2167 <div class="doc-section">
2169 <p>OpaqueImage() changes any pixel that matches color with the color defined by fill.</p>
2171 <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>
2173 <p>The format of the OpaqueImage method is:</p>
2176 MagickBooleanType OpaqueImage(Image *image,
2177 const PixelPacket *target,const PixelPacket fill)
2180 <p>A description of each parameter follows:</p>
2186 <p>the RGB value of the target color.</p>
2189 <p>the replacement color.</p>
2192 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="OpenCacheView">OpenCacheView</a></h2>
2193 <div class="doc-section">
2195 <p>OpenCacheView() opens a view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself.</p>
2197 <p>Deprecated, replace with:</p>
2200 AcquireCacheView(image);
2203 <p>The format of the OpenCacheView method is:</p>
2206 CacheView *OpenCacheView(const Image *image)
2209 <p>A description of each parameter follows:</p>
2215 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="PaintFloodfill">PaintFloodfill</a></h2>
2216 <div class="doc-section">
2218 <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>
2220 <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>
2222 <p>Deprecated, replace with:</p>
2225 FloodfillPaintImage(image,channel,draw_info,target,x,y,
2226 method == FloodfillMethod ? MagickFalse : MagickTrue);
2229 <p>The format of the PaintFloodfillImage method is:</p>
2232 MagickBooleanType PaintFloodfillImage(Image *image,
2233 const ChannelType channel,const MagickPixelPacket target,const ssize_t x,
2234 const ssize_t y,const DrawInfo *draw_info,const PaintMethod method)
2237 <p>A description of each parameter follows:</p>
2243 <p>the channel(s).</p>
2246 <p>the RGB value of the target color.</p>
2249 <p>the starting location of the operation.</p>
2252 <p>the draw info.</p>
2255 <p>Choose either FloodfillMethod or FillToBorderMethod.</p>
2258 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="PaintOpaqueImage">PaintOpaqueImage</a></h2>
2259 <div class="doc-section">
2261 <p>PaintOpaqueImage() changes any pixel that matches color with the color defined by fill.</p>
2263 <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>
2265 <p>Deprecated, replace with:</p>
2268 OpaquePaintImageChannel(image,DefaultChannels,target,fill,MagickFalse);
2269 OpaquePaintImageChannel(image,channel,target,fill,MagickFalse);
2272 <p>The format of the PaintOpaqueImage method is:</p>
2275 MagickBooleanType PaintOpaqueImage(Image *image,
2276 const PixelPacket *target,const PixelPacket *fill)
2277 MagickBooleanType PaintOpaqueImageChannel(Image *image,
2278 const ChannelType channel,const PixelPacket *target,
2279 const PixelPacket *fill)
2282 <p>A description of each parameter follows:</p>
2288 <p>the channel(s).</p>
2291 <p>the RGB value of the target color.</p>
2294 <p>the replacement color.</p>
2297 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="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>
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>
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>
2323 <p>the RGB value of the target color.</p>
2326 <p>the replacement opacity value.</p>
2329 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ParseSizeGeometry">ParseSizeGeometry</a></h2>
2330 <div class="doc-section">
2332 <p>ParseSizeGeometry() returns a region as defined by the geometry string with respect to the image dimensions and aspect ratio.</p>
2334 <p>Deprecated, replace with:</p>
2337 ParseMetaGeometry(geometry,®ion_info->x,®ion_info->y,
2338 ®ion_info->width,®ion_info->height);
2341 <p>The format of the ParseSizeGeometry method is:</p>
2344 MagickStatusType ParseSizeGeometry(const Image *image,
2345 const char *geometry,RectangeInfo *region_info)
2348 <p>A description of each parameter follows:</p>
2351 <p>The geometry (e.g. 100x100+10+10).</p>
2353 <h5>region_info</h5>
2354 <p>the region as defined by the geometry string.</p>
2357 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="PopImageList">PopImageList</a></h2>
2358 <div class="doc-section">
2360 <p>PopImageList() removes the last image in the list.</p>
2362 <p>Deprecated, replace with:</p>
2365 RemoveLastImageFromList(images);
2368 <p>The format of the PopImageList method is:</p>
2371 Image *PopImageList(Image **images)
2374 <p>A description of each parameter follows:</p>
2377 <p>the image list.</p>
2380 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="PopImagePixels">PopImagePixels</a></h2>
2381 <div class="doc-section">
2383 <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>
2385 <p>The format of the PopImagePixels method is:</p>
2388 size_t PopImagePixels(Image *,const QuantumType quantum,
2389 unsigned char *destination)
2392 <p>A description of each parameter follows:</p>
2398 <p>Declare which pixel components to transfer (RGB, RGBA, etc).</p>
2400 <h5>destination</h5>
2401 <p>The components are transferred to this buffer.</p>
2404 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="PostscriptGeometry">PostscriptGeometry</a></h2>
2405 <div class="doc-section">
2407 <p>PostscriptGeometry() replaces any page mneumonic with the equivalent size in picas.</p>
2409 <p>Deprecated, replace with:</p>
2412 GetPageGeometry(page);
2415 <p>The format of the PostscriptGeometry method is:</p>
2418 char *PostscriptGeometry(const char *page)
2421 <p>A description of each parameter follows.</p>
2424 <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>
2427 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="PushImageList">PushImageList</a></h2>
2428 <div class="doc-section">
2430 <p>PushImageList() adds an image to the end of the list.</p>
2432 <p>Deprecated, replace with:</p>
2435 AppendImageToList(images,CloneImageList(image,exception));
2438 <p>The format of the PushImageList method is:</p>
2441 unsigned int PushImageList(Image *images,const Image *image,
2442 ExceptionInfo *exception)
2445 <p>A description of each parameter follows:</p>
2448 <p>the image list.</p>
2454 <p>return any errors or warnings in this structure.</p>
2457 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="PushImagePixels">PushImagePixels</a></h2>
2458 <div class="doc-section">
2460 <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>
2462 <p>The format of the PushImagePixels method is:</p>
2465 size_t PushImagePixels(Image *image,const QuantumType quantum,
2466 const unsigned char *source)
2469 <p>A description of each parameter follows:</p>
2475 <p>Declare which pixel components to transfer (red, green, blue, opacity, RGB, or RGBA).</p>
2478 <p>The pixel components are transferred from this buffer.</p>
2481 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="QuantizationError">QuantizationError</a></h2>
2482 <div class="doc-section">
2484 <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>
2487 o mean_error_per_pixel: This value is the mean error for any single
2491 <h5>normalized_mean_square_error</h5>
2492 <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>
2494 <h5>normalized_maximum_square_error</h5>
2495 <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>
2497 <p>Deprecated, replace with:</p>
2500 GetImageQuantizeError(image);
2503 <p>The format of the QuantizationError method is:</p>
2506 unsigned int QuantizationError(Image *image)
2509 <p>A description of each parameter follows.</p>
2512 <p>Specifies a pointer to an Image structure; returned from ReadImage.</p>
2515 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="RandomChannelThresholdImage">RandomChannelThresholdImage</a></h2>
2516 <div class="doc-section">
2518 <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>
2520 <p>The format of the RandomChannelThresholdImage method is:</p>
2523 unsigned int RandomChannelThresholdImage(Image *image,
2524 const char *channel, const char *thresholds,
2525 ExceptionInfo *exception)
2528 <p>A description of each parameter follows:</p>
2534 <p>the channel or channels to be thresholded.</p>
2537 <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>
2540 <p>return any errors or warnings in this structure.</p>
2543 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ReacquireMemory">ReacquireMemory</a></h2>
2544 <div class="doc-section">
2546 <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>
2548 <p>The format of the ReacquireMemory method is:</p>
2551 void ReacquireMemory(void **memory,const size_t size)
2554 <p>A description of each parameter follows:</p>
2557 <p>A pointer to a memory allocation. On return the pointer may change but the contents of the original allocation will not.</p>
2560 <p>the new size of the allocated memory.</p>
2563 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="RecolorImage">RecolorImage</a></h2>
2564 <div class="doc-section">
2566 <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>
2568 <p>The format of the RecolorImage method is:</p>
2571 Image *RecolorImage(const Image *image,const size_t order,
2572 const double *color_matrix,ExceptionInfo *exception)
2575 <p>A description of each parameter follows:</p>
2581 <p>the number of columns and rows in the recolor matrix.</p>
2583 <h5>color_matrix</h5>
2584 <p>An array of double representing the recolor matrix.</p>
2587 <p>return any errors or warnings in this structure.</p>
2590 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ReduceNoiseImage">ReduceNoiseImage</a></h2>
2591 <div class="doc-section">
2593 <p>ReduceNoiseImage() smooths the contours of an image while still preserving edge information. The algorithm works by replacing each pixel with its neighbor closest in value. A neighbor is defined by radius. Use a radius of 0 and ReduceNoise() selects a suitable radius for you.</p>
2595 <p>The format of the ReduceNoiseImage method is:</p>
2598 Image *ReduceNoiseImage(const Image *image,const double radius,
2599 ExceptionInfo *exception)
2602 <p>A description of each parameter follows:</p>
2608 <p>the radius of the pixel neighborhood.</p>
2611 <p>return any errors or warnings in this structure.</p>
2614 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ResetImageAttributeIterator">ResetImageAttributeIterator</a></h2>
2615 <div class="doc-section">
2617 <p>ResetImageAttributeIterator() resets the image attributes iterator. Use it in conjunction with GetNextImageAttribute() to iterate over all the values associated with an image.</p>
2619 <p>Deprecated, replace with:</p>
2622 ResetImagePropertyIterator(image);
2625 <p>The format of the ResetImageAttributeIterator method is:</p>
2628 ResetImageAttributeIterator(const ImageInfo *image)
2631 <p>A description of each parameter follows:</p>
2637 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetCacheViewPixels">SetCacheViewPixels</a></h2>
2638 <div class="doc-section">
2640 <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>
2642 <p>Deprecated, replace with:</p>
2645 QueueCacheViewAuthenticPixels(cache_view,x,y,columns,rows,
2646 GetCacheViewException(cache_view));
2649 <p>The format of the SetCacheViewPixels method is:</p>
2652 PixelPacket *SetCacheViewPixels(CacheView *cache_view,const ssize_t x,
2653 const ssize_t y,const size_t columns,const size_t rows)
2656 <p>A description of each parameter follows:</p>
2659 <p>the cache view.</p>
2661 <h5>x,y,columns,rows</h5>
2662 <p>These values define the perimeter of a region of pixels.</p>
2665 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetExceptionInfo">SetExceptionInfo</a></h2>
2666 <div class="doc-section">
2668 <p>SetExceptionInfo() sets the exception severity.</p>
2670 <p>The format of the SetExceptionInfo method is:</p>
2673 MagickBooleanType SetExceptionInfo(ExceptionInfo *exception,
2674 ExceptionType severity)
2677 <p>A description of each parameter follows:</p>
2680 <p>the exception info.</p>
2683 <p>the exception severity.</p>
2686 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetImage">SetImage</a></h2>
2687 <div class="doc-section">
2689 <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>
2691 <p>The format of the SetImage method is:</p>
2694 void SetImage(Image *image,const Quantum opacity)
2697 <p>A description of each parameter follows:</p>
2703 <p>Set each pixel to this level of transparency.</p>
2706 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetImageAttribute">SetImageAttribute</a></h2>
2707 <div class="doc-section">
2709 <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>
2711 <p>Deprecated, replace with:</p>
2714 SetImageProperty(image,key,value);
2717 <p>The format of the SetImageAttribute method is:</p>
2720 MagickBooleanType SetImageAttribute(Image *image,const char *key,
2724 <p>A description of each parameter follows:</p>
2736 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetImageList">SetImageList</a></h2>
2737 <div class="doc-section">
2739 <p>SetImageList() inserts an image into the list at the specified position.</p>
2741 <p>The format of the SetImageList method is:</p>
2744 unsigned int SetImageList(Image *images,const Image *image,
2745 const ssize_t offset,ExceptionInfo *exception)
2748 <p>A description of each parameter follows:</p>
2751 <p>the image list.</p>
2757 <p>the position within the list.</p>
2760 <p>return any errors or warnings in this structure.</p>
2763 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetImagePixels">SetImagePixels</a></h2>
2764 <div class="doc-section">
2766 <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>
2768 <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>
2770 <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>
2772 <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>
2774 <p>Deprecated, replace with:</p>
2777 QueueAuthenticPixels(image,x,y,columns,rows,&image->exception);
2780 <p>The format of the SetImagePixels() method is:</p>
2783 PixelPacket *SetImagePixels(Image *image,const ssize_t x,const ssize_t y,
2784 const size_t columns,const size_t rows)
2787 <p>A description of each parameter follows:</p>
2790 <p>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</p>
2795 <h5>x,y,columns,rows</h5>
2796 <p>These values define the perimeter of a region of pixels.</p>
2799 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetMagickRegistry">SetMagickRegistry</a></h2>
2800 <div class="doc-section">
2802 <p>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned.</p>
2804 <p>The format of the SetMagickRegistry method is:</p>
2807 ssize_t SetMagickRegistry(const RegistryType type,const void *blob,
2808 const size_t length,ExceptionInfo *exception)
2811 <p>A description of each parameter follows:</p>
2814 <p>the registry type.</p>
2817 <p>the address of a Binary Large OBject.</p>
2820 <p>For a registry type of ImageRegistryType use sizeof(Image) otherise the blob length in number of bytes.</p>
2823 <p>return any errors or warnings in this structure.</p>
2826 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SetMonitorHandler">SetMonitorHandler</a></h2>
2827 <div class="doc-section">
2829 <p>SetMonitorHandler() sets the monitor handler to the specified method and returns the previous monitor handler.</p>
2831 <p>The format of the SetMonitorHandler method is:</p>
2834 MonitorHandler SetMonitorHandler(MonitorHandler handler)
2837 <p>A description of each parameter follows:</p>
2840 <p>Specifies a pointer to a method to handle monitors.</p>
2843 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ShiftImageList">ShiftImageList</a></h2>
2844 <div class="doc-section">
2846 <p>ShiftImageList() removes an image from the beginning of the list.</p>
2848 <p>Deprecated, replace with:</p>
2851 RemoveFirstImageFromList(images);
2854 <p>The format of the ShiftImageList method is:</p>
2857 Image *ShiftImageList(Image **images)
2860 <p>A description of each parameter follows:</p>
2863 <p>the image list.</p>
2866 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SpliceImageList">SpliceImageList</a></h2>
2867 <div class="doc-section">
2869 <p>SpliceImageList() removes the images designated by offset and length from the list and replaces them with the specified list.</p>
2871 <p>The format of the SpliceImageList method is:</p>
2874 Image *SpliceImageList(Image *images,const ssize_t offset,
2875 const size_t length,const Image *splices,
2876 ExceptionInfo *exception)
2879 <p>A description of each parameter follows:</p>
2882 <p>the image list.</p>
2885 <p>the position within the list.</p>
2888 <p>the length of the image list to remove.</p>
2891 <p>Replace the removed image list with this list.</p>
2894 <p>return any errors or warnings in this structure.</p>
2897 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="Strip">Strip</a></h2>
2898 <div class="doc-section">
2900 <p>Strip() strips any whitespace or quotes from the beginning and end of a string of characters.</p>
2902 <p>The format of the Strip method is:</p>
2905 void Strip(char *message)
2908 <p>A description of each parameter follows:</p>
2911 <p>Specifies an array of characters.</p>
2914 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SyncCacheView">SyncCacheView</a></h2>
2915 <div class="doc-section">
2917 <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>
2919 <p>Deprecated, replace with:</p>
2922 SyncCacheViewAuthenticPixels(cache_view,GetCacheViewException(cache_view));
2925 <p>The format of the SyncCacheView method is:</p>
2928 MagickBooleanType SyncCacheView(CacheView *cache_view)
2931 <p>A description of each parameter follows:</p>
2934 <p>the cache view.</p>
2937 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="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>
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>
2957 <p>the cache view.</p>
2960 <p>return any errors or warnings in this structure.</p>
2963 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="SyncImagePixels">SyncImagePixels</a></h2>
2964 <div class="doc-section">
2966 <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>
2968 <p>Deprecated, replace with:</p>
2971 SyncAuthenticPixels(image,&image->exception);
2974 <p>The format of the SyncImagePixels() method is:</p>
2977 MagickBooleanType SyncImagePixels(Image *image)
2980 <p>A description of each parameter follows:</p>
2986 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="TemporaryFilename">TemporaryFilename</a></h2>
2987 <div class="doc-section">
2989 <p>TemporaryFilename() replaces the contents of path by a unique path name.</p>
2991 <p>The format of the TemporaryFilename method is:</p>
2994 void TemporaryFilename(char *path)
2997 <p>A description of each parameter follows.</p>
3000 <p>Specifies a pointer to an array of characters. The unique path name is returned in this array.</p>
3003 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ThresholdImage">ThresholdImage</a></h2>
3004 <div class="doc-section">
3006 <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>
3008 <p>The format of the ThresholdImage method is:</p>
3011 unsigned int ThresholdImage(Image *image,const double threshold)
3014 <p>A description of each parameter follows:</p>
3020 <p>Define the threshold value</p>
3023 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ThresholdImageChannel">ThresholdImageChannel</a></h2>
3024 <div class="doc-section">
3026 <p>ThresholdImageChannel() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p>
3028 <p>The format of the ThresholdImageChannel method is:</p>
3031 unsigned int ThresholdImageChannel(Image *image,const char *threshold)
3034 <p>A description of each parameter follows:</p>
3040 <p>define the threshold values.</p>
3043 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="TransformHSL">TransformHSL</a></h2>
3044 <div class="doc-section">
3046 <p>TransformHSL() converts a (red, green, blue) to a (hue, saturation, lightness) triple.</p>
3048 <p>The format of the TransformHSL method is:</p>
3051 void TransformHSL(const Quantum red,const Quantum green,
3052 const Quantum blue,double *hue,double *saturation,double *lightness)
3055 <p>A description of each parameter follows:</p>
3057 <h5>red, green, blue</h5>
3058 <p>A Quantum value representing the red, green, and blue component of a pixel..</p>
3060 <h5>hue, saturation, lightness</h5>
3061 <p>A pointer to a double value representing a component of the HSL color space.</p>
3064 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="TranslateText">TranslateText</a></h2>
3065 <div class="doc-section">
3067 <p>TranslateText() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p>
3069 <p>Deprecated, replace with:</p>
3072 InterpretImageProperties(image_info,image,embed_text);
3075 <p>The format of the TranslateText method is:</p>
3078 char *TranslateText(const ImageInfo *image_info,Image *image,
3079 const char *embed_text)
3082 <p>A description of each parameter follows:</p>
3085 <p>the image info.</p>
3091 <p>the address of a character string containing the embedded formatting characters.</p>
3094 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="TransparentImage">TransparentImage</a></h2>
3095 <div class="doc-section">
3097 <p>TransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p>
3099 <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>
3101 <p>The format of the TransparentImage method is:</p>
3104 MagickBooleanType TransparentImage(Image *image,
3105 const PixelPacket target,const Quantum opacity)
3108 <p>A description of each parameter follows:</p>
3114 <p>the RGB value of the target color.</p>
3117 <p>the replacement opacity value.</p>
3120 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="UnshiftImageList">UnshiftImageList</a></h2>
3121 <div class="doc-section">
3123 <p>UnshiftImageList() adds the image to the beginning of the list.</p>
3125 <p>Deprecated, replace with:</p>
3128 PrependImageToList(images,CloneImageList(image,exception));
3131 <p>The format of the UnshiftImageList method is:</p>
3134 unsigned int UnshiftImageList(Image *images,const Image *image,
3135 ExceptionInfo *exception)
3138 <p>A description of each parameter follows:</p>
3141 <p>the image list.</p>
3147 <p>return any errors or warnings in this structure.</p>
3150 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate_8c.html" id="ZoomImage">ZoomImage</a></h2>
3151 <div class="doc-section">
3153 <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>
3155 <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>
3157 <p>The format of the ZoomImage method is:</p>
3160 Image *ZoomImage(const Image *image,const size_t columns,
3161 const size_t rows,ExceptionInfo *exception)
3164 <p>A description of each parameter follows:</p>
3170 <p>An integer that specifies the number of columns in the zoom image.</p>
3173 <p>An integer that specifies the number of rows in the scaled image.</p>
3176 <p>return any errors or warnings in this structure.</p>
3182 <div id="linkbar">
\r
3183 <span id="linkbar-west"> </span>
\r
3184 <span id="linkbar-center">
\r
3185 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
3186 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
3188 <span id="linkbar-east"> </span>
\r
3190 <div class="footer">
\r
3191 <span id="footer-west">© 1999-2011 ImageMagick Studio LLC</span>
\r
3192 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
3194 <div style="clear: both; margin: 0; width: 100%; "></div>
\r
3195 <script type="text/javascript">
\r
3196 var _gaq = _gaq || [];
\r
3197 _gaq.push(['_setAccount', 'UA-17690367-1']);
\r
3198 _gaq.push(['_trackPageview']);
\r
3201 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
\r
3202 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
\r
3203 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
\r