1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
\r
5 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
\r
6 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
\r
7 <style type="text/css" media="screen,projection"><!--
\r
8 @import url("../../www/magick.css");
\r
10 <link rel="shortcut icon" href="../../images/wand.ico" type="images/vnd.microsoft.icon"/>
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="Generator" content="PHP"/>
16 <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"/>
17 <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
18 <meta name="Rating" content="GENERAL"/>
19 <meta name="Robots" content="INDEX, FOLLOW"/>
20 <meta name="Generator" content="ImageMagick Studio LLC"/>
21 <meta name="Author" content="ImageMagick Studio LLC"/>
22 <meta name="Revisit-after" content="2 DAYS"/>
23 <meta name="Resource-type" content="document"/>
24 <meta name="Copyright" content="Copyright (c) 1999-2009 ImageMagick Studio LLC"/>
25 <meta name="Distribution" content="Global"/>
28 <body id="www-imagemagick-org">
\r
29 <div class="titlebar">
\r
30 <a href="../../index.html">
\r
31 <img src="../../images/script.png" alt="[ImageMagick]"
\r
32 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
33 <a href="http://www.networkredux.com">
\r
34 <img src="../../images/networkredux.png" alt="[sponsor]"
\r
35 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
36 <a href="http://www.imagemagick.org/discourse-server/">
\r
37 <img src="../../images/logo.jpg" alt=""
\r
38 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
39 <a href="../../index.html">
\r
40 <img src="../../images/sprite.jpg" alt=""
\r
41 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
44 <div class="eastbar">
\r
47 <a href="../../index.html">About ImageMagick</a>
49 <div class="sep"></div>
\r
51 <a href="../../www/command-line-tools.html">Command-line Tools</a>
54 <a href="../../www/command-line-processing.html">Processing</a>
57 <a href="../../www/command-line-options.html">Options</a>
60 <a href="http://www.imagemagick.org/Usage/">Usage</a>
63 <a href="../../www/api.html">Program Interfaces</a>
66 <a href="../../www/magick-wand.html">MagickWand</a>
69 <a href="../../www/magick-core.html">MagickCore</a>
72 <a href="../../www/perl-magick.html">PerlMagick</a>
75 <a href="../../Magick++/">Magick++</a>
78 <a href="../../www/architecture.html">Architecture</a>
80 <div class="sep"></div>
\r
82 <a href="../../www/install-source.html">Install from Source</a>
85 <a href="../../www/install-source.html#unix">Unix</a>
88 <a href="../../www/install-source.html#windows">Windows</a>
91 <a href="../../www/binary-releases.html">Binary Releases</a>
94 <a href="../../www/binary-releases.html#unix">Unix</a>
97 <a href="../../www/binary-releases.html#macosx">Mac OS X</a>
100 <a href="../../www/binary-releases.html#windows">Windows</a>
103 <a href="../../www/resources.html">Resources</a>
105 <div class="sep"></div>
\r
107 <a href="../../www/download.html">Download</a>
109 <div class="sep"></div>
\r
111 <a href="../http://www.imagemagick.org/script/search.php">Search</a>
113 <div class="sep"></div>
\r
115 <a href="../../www/sitemap.html">Site Map</a>
118 <a href="../../www/links.html">Links</a>
120 <div class="sep"></div>
\r
122 <a href="../../www/sponsors.html">Sponsors:</a>
124 <div class="sponsbox">
125 <div class="sponsor">
126 <a href="http://www.abi-stoff.de/abizeitung/" title="Abibuch">Abizeitung</a><!-- 20090501000200 -->
128 <div class="sponsor">
129 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201003010120 Buchhorn -->
131 <div class="sponsor">
132 <a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
134 <div class="sponsor">
135 <a href="http://www.goyax.de">Börse</a><!-- 201001000240 Gewiese digital-finance.de -->
137 <div class="sponsor">
138 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012001200 allesdruck.de-->
140 <div class="sponsor">
141 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 200911010120 -->
143 <div class="sponsor">
144 <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
154 <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="#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="#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="#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>]</p>
156 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
157 _8c.html" target="source" name="AcquireCacheViewIndexes">AcquireCacheViewIndexes</a></h2>
158 <div class="doc-section">
160 <p>AcquireCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
162 <p>The format of the AcquireCacheViewIndexes method is:</p>
165 const IndexPacket *AcquireCacheViewIndexes(const CacheView *cache_view)
168 <p>A description of each parameter follows:</p></ol>
171 <ol><p>the cache view.</p></ol>
174 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
175 _8c.html" target="source" name="AcquireCacheViewPixels">AcquireCacheViewPixels</a></h2>
176 <div class="doc-section">
178 <p>AcquireCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
180 <p>The format of the AcquireCacheViewPixels method is:</p>
183 const PixelPacket *AcquireCacheViewPixels(const CacheView *cache_view,
184 const long x,const long y,const unsigned long columns,
185 const unsigned long rows,ExceptionInfo *exception)
188 <p>A description of each parameter follows:</p></ol>
191 <ol><p>the cache view.</p></ol>
193 <h5>x,y,columns,rows</h5>
194 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
197 <ol><p>return any errors or warnings in this structure.</p></ol>
200 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
201 _8c.html" target="source" name="AcquireImagePixels">AcquireImagePixels</a></h2>
202 <div class="doc-section">
204 <p>AcquireImagePixels() returns an immutable pixel region. If the region is successfully accessed, a pointer to it is returned, otherwise NULL is returned. The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected region is part of one row, or one or more full rows, since there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
206 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or the storage class is PseudoClass, call GetAuthenticIndexQueue() after invoking GetAuthenticPixels() to access the black color component or to obtain the colormap indexes (of type IndexPacket) corresponding to the region.</p></ol>
208 <p>If you plan to modify the pixels, use GetAuthenticPixels() instead.</p></ol>
210 <p>Note, the AcquireImagePixels() and GetAuthenticPixels() methods are not thread-safe. In a threaded environment, use GetCacheViewVirtualPixels() or GetCacheViewAuthenticPixels() instead.</p></ol>
212 <p>The format of the AcquireImagePixels() method is:</p>
215 const PixelPacket *AcquireImagePixels(const Image *image,const long x,
216 const long y,const unsigned long columns,const unsigned long rows,
217 ExceptionInfo *exception)
220 <p>A description of each parameter follows:</p></ol>
223 <ol><p>the image.</p></ol>
225 <h5>x,y,columns,rows</h5>
226 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
229 <ol><p>return any errors or warnings in this structure.</p></ol>
232 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
233 _8c.html" target="source" name="AcquireIndexes">AcquireIndexes</a></h2>
234 <div class="doc-section">
236 <p>AcquireIndexes() returns the black channel or the colormap indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels(). NULL is returned if the black channel or colormap indexes are not available.</p></ol>
238 <p>The format of the AcquireIndexes() method is:</p>
241 const IndexPacket *AcquireIndexes(const Image *image)
244 <p>A description of each parameter follows:</p></ol>
247 <ol><p>AcquireIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
250 <ol><p>the image.</p></ol>
253 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
254 _8c.html" target="source" name="AcquireMemory">AcquireMemory</a></h2>
255 <div class="doc-section">
257 <p>AcquireMemory() returns a pointer to a block of memory at least size bytes suitably aligned for any use.</p></ol>
259 <p>The format of the AcquireMemory method is:</p>
262 void *AcquireMemory(const size_t size)
265 <p>A description of each parameter follows:</p></ol>
268 <ol><p>the size of the memory in bytes to allocate.</p></ol>
271 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
272 _8c.html" target="source" name="AcquireOneCacheViewPixel">AcquireOneCacheViewPixel</a></h2>
273 <div class="doc-section">
275 <p>AcquireOneCacheViewPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p></ol>
277 <p>The format of the AcquireOneCacheViewPixel method is:</p>
280 MagickBooleanType AcquireOneCacheViewPixel(const CacheView *cache_view,
281 const long x,const long y,PixelPacket *pixel,ExceptionInfo *exception)
284 <p>A description of each parameter follows:</p></ol>
287 <ol><p>the cache view.</p></ol>
290 <ol><p>These values define the offset of the pixel.</p></ol>
293 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
296 <ol><p>return any errors or warnings in this structure.</p></ol>
299 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
300 _8c.html" target="source" name="AcquireOneCacheViewVirtualPixel">AcquireOneCacheViewVirtualPixel</a></h2>
301 <div class="doc-section">
303 <p>AcquireOneCacheViewVirtualPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOneCacheViewAuthenticPixel() instead.</p></ol>
305 <p>The format of the AcquireOneCacheViewPixel method is:</p>
308 MagickBooleanType AcquireOneCacheViewVirtualPixel(
309 const CacheView *cache_view,
310 const VirtualPixelMethod virtual_pixel_method,const long x,
311 const long y,PixelPacket *pixel,ExceptionInfo *exception)
314 <p>A description of each parameter follows:</p></ol>
317 <ol><p>the cache view.</p></ol>
319 <h5>virtual_pixel_method</h5>
320 <ol><p>the virtual pixel method.</p></ol>
323 <ol><p>These values define the offset of the pixel.</p></ol>
326 <ol><p>return a pixel at the specified (x,y) location.</p></ol>
329 <ol><p>return any errors or warnings in this structure.</p></ol>
332 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
333 _8c.html" target="source" name="AcquireOneMagickPixel">AcquireOneMagickPixel</a></h2>
334 <div class="doc-section">
336 <p>AcquireOneMagickPixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
338 <p>The format of the AcquireOneMagickPixel() method is:</p>
341 MagickPixelPacket AcquireOneMagickPixel(const Image image,const long x,
342 const long y,ExceptionInfo exception)
345 <p>A description of each parameter follows:</p></ol>
348 <ol><p>the image.</p></ol>
351 <ol><p>These values define the location of the pixel to return.</p></ol>
354 <ol><p>return any errors or warnings in this structure.</p></ol>
357 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
358 _8c.html" target="source" name="AcquireOnePixel">AcquireOnePixel</a></h2>
359 <div class="doc-section">
361 <p>AcquireOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
363 <p>The format of the AcquireOnePixel() method is:</p>
366 PixelPacket AcquireOnePixel(const Image image,const long x,
367 const long y,ExceptionInfo exception)
370 <p>A description of each parameter follows:</p></ol>
373 <ol><p>the image.</p></ol>
376 <ol><p>These values define the location of the pixel to return.</p></ol>
379 <ol><p>return any errors or warnings in this structure.</p></ol>
382 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
383 _8c.html" target="source" name="AcquireOneVirtualPixel">AcquireOneVirtualPixel</a></h2>
384 <div class="doc-section">
386 <p>AcquireOneVirtualPixel() returns a single pixel at the specified (x,y) location as defined by specified pixel method. The image background color is returned if an error occurs. If you plan to modify the pixel, use GetOnePixel() instead.</p></ol>
388 <p>The format of the AcquireOneVirtualPixel() method is:</p>
391 PixelPacket AcquireOneVirtualPixel(const Image image,
392 const VirtualPixelMethod virtual_pixel_method,const long x,
393 const long y,ExceptionInfo exception)
396 <p>A description of each parameter follows:</p></ol>
398 <h5>virtual_pixel_method</h5>
399 <ol><p>the virtual pixel method.</p></ol>
402 <ol><p>the image.</p></ol>
405 <ol><p>These values define the location of the pixel to return.</p></ol>
408 <ol><p>return any errors or warnings in this structure.</p></ol>
411 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
412 _8c.html" target="source" name="AcquirePixels">AcquirePixels</a></h2>
413 <div class="doc-section">
415 <p>AcquirePixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetVirtualPixels().</p></ol>
417 <p>The format of the AcquirePixels() method is:</p>
420 const PixelPacket *AcquirePixels(const Image image)
423 <p>A description of each parameter follows:</p></ol>
426 <ol><p>the image.</p></ol>
429 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
430 _8c.html" target="source" name="AffinityImage">AffinityImage</a></h2>
431 <div class="doc-section">
433 <p>AffinityImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
435 <p>The format of the AffinityImage method is:</p>
438 MagickBooleanType AffinityImage(const QuantizeInfo *quantize_info,
439 Image *image,const Image *affinity_image)
442 <p>A description of each parameter follows:</p></ol>
444 <h5>quantize_info</h5>
445 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
448 <ol><p>the image.</p></ol>
450 <h5>affinity_image</h5>
451 <ol><p>the reference image.</p></ol>
454 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
455 _8c.html" target="source" name="AffinityImages">AffinityImages</a></h2>
456 <div class="doc-section">
458 <p>AffinityImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
460 <p>The format of the AffinityImage method is:</p>
463 MagickBooleanType AffinityImages(const QuantizeInfo *quantize_info,
464 Image *images,Image *affinity_image)
467 <p>A description of each parameter follows:</p></ol>
469 <h5>quantize_info</h5>
470 <ol><p>Specifies a pointer to an QuantizeInfo structure.</p></ol>
473 <ol><p>the image sequence.</p></ol>
475 <h5>affinity_image</h5>
476 <ol><p>the reference image.</p></ol>
479 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
480 _8c.html" target="source" name="AllocateImage">AllocateImage</a></h2>
481 <div class="doc-section">
483 <p>AllocateImage() returns a pointer to an image structure initialized to default values.</p></ol>
485 <p>The format of the AllocateImage method is:</p>
488 Image *AllocateImage(const ImageInfo *image_info)
491 <p>A description of each parameter follows:</p></ol>
494 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
497 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
498 _8c.html" target="source" name="AllocateImageColormap">AllocateImageColormap</a></h2>
499 <div class="doc-section">
501 <p>AllocateImageColormap() allocates an image colormap and initializes it to a linear gray colorspace. If the image already has a colormap, it is replaced. AllocateImageColormap() returns MagickTrue if successful, otherwise MagickFalse if there is not enough memory.</p></ol>
503 <p>The format of the AllocateImageColormap method is:</p>
506 MagickBooleanType AllocateImageColormap(Image *image,
507 const unsigned long colors)
510 <p>A description of each parameter follows:</p></ol>
513 <ol><p>the image.</p></ol>
516 <ol><p>the number of colors in the image colormap.</p></ol>
519 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
520 _8c.html" target="source" name="AllocateNextImage">AllocateNextImage</a></h2>
521 <div class="doc-section">
523 <p>AllocateNextImage() initializes the next image in a sequence to default values. The next member of image points to the newly allocated image. If there is a memory shortage, next is assigned NULL.</p></ol>
525 <p>The format of the AllocateNextImage method is:</p>
528 void AllocateNextImage(const ImageInfo *image_info,Image *image)
531 <p>A description of each parameter follows:</p></ol>
534 <ol><p>Many of the image default values are set from this structure. For example, filename, compression, depth, background color, and others.</p></ol>
537 <ol><p>the image.</p></ol>
540 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
541 _8c.html" target="source" name="AllocateString">AllocateString</a></h2>
542 <div class="doc-section">
544 <p>AllocateString() allocates memory for a string and copies the source string to that memory location (and returns it).</p></ol>
546 <p>The format of the AllocateString method is:</p>
549 char *AllocateString(const char *source)
552 <p>A description of each parameter follows:</p></ol>
555 <ol><p>A character string.</p></ol>
558 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
559 _8c.html" target="source" name="ChannelThresholdImage">ChannelThresholdImage</a></h2>
560 <div class="doc-section">
562 <p>ChannelThresholdImage() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p></ol>
564 <p>The format of the ChannelThresholdImage method is:</p>
567 unsigned int ChannelThresholdImage(Image *image,const char *level)
570 <p>A description of each parameter follows:</p></ol>
573 <ol><p>the image.</p></ol>
576 <ol><p>define the threshold values.</p></ol>
579 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
580 _8c.html" target="source" name="ClipPathImage">ClipPathImage</a></h2>
581 <div class="doc-section">
583 <p>ClipPathImage() sets the image clip mask based any clipping path information if it exists.</p></ol>
585 <p>The format of the ClipImage method is:</p>
588 MagickBooleanType ClipPathImage(Image *image,const char *pathname,
589 const MagickBooleanType inside)
592 <p>A description of each parameter follows:</p></ol>
595 <ol><p>the image.</p></ol>
598 <ol><p>name of clipping path resource. If name is preceded by #, use clipping path numbered by name.</p></ol>
601 <ol><p>if non-zero, later operations take effect inside clipping path. Otherwise later operations take effect outside clipping path.</p></ol>
604 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
605 _8c.html" target="source" name="CloneImageAttributes">CloneImageAttributes</a></h2>
606 <div class="doc-section">
608 <p>CloneImageAttributes() clones one or more image attributes.</p></ol>
610 <p>The format of the CloneImageAttributes method is:</p>
613 MagickBooleanType CloneImageAttributes(Image *image,
614 const Image *clone_image)
617 <p>A description of each parameter follows:</p></ol>
620 <ol><p>the image.</p></ol>
623 <ol><p>the clone image.</p></ol>
626 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
627 _8c.html" target="source" name="CloneMemory">CloneMemory</a></h2>
628 <div class="doc-section">
630 <p>CloneMemory() copies size bytes from memory area source to the destination. Copying between objects that overlap will take place correctly. It returns destination.</p></ol>
632 <p>The format of the CloneMemory method is:</p>
635 void *CloneMemory(void *destination,const void *source,
639 <p>A description of each parameter follows:</p></ol>
642 <ol><p>the destination.</p></ol>
645 <ol><p>the source.</p></ol>
648 <ol><p>the size of the memory in bytes to allocate.</p></ol>
651 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
652 _8c.html" target="source" name="CloseCacheView">CloseCacheView</a></h2>
653 <div class="doc-section">
655 <p>CloseCacheView() closes the specified view returned by a previous call to OpenCacheView().</p></ol>
657 <p>The format of the CloseCacheView method is:</p>
660 CacheView *CloseCacheView(CacheView *view_info)
663 <p>A description of each parameter follows:</p></ol>
666 <ol><p>the address of a structure of type CacheView.</p></ol>
669 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
670 _8c.html" target="source" name="ColorFloodfill">ColorFloodfill</a></h2>
671 <div class="doc-section">
673 <p>ColorFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
675 <p>By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.</p></ol>
677 <p>The format of the ColorFloodfillImage method is:</p>
680 MagickBooleanType ColorFloodfillImage(Image *image,
681 const DrawInfo *draw_info,const PixelPacket target,
682 const long x_offset,const long y_offset,const PaintMethod method)
685 <p>A description of each parameter follows:</p></ol>
688 <ol><p>the image.</p></ol>
691 <ol><p>the draw info.</p></ol>
694 <ol><p>the RGB value of the target color.</p></ol>
697 <ol><p>the starting location of the operation.</p></ol>
700 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
703 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
704 _8c.html" target="source" name="DeleteImageAttribute">DeleteImageAttribute</a></h2>
705 <div class="doc-section">
707 <p>DeleteImageAttribute() deletes an attribute from the image.</p></ol>
709 <p>The format of the DeleteImageAttribute method is:</p>
712 MagickBooleanType DeleteImageAttribute(Image *image,const char *key)
715 <p>A description of each parameter follows:</p></ol>
718 <ol><p>the image info.</p></ol>
721 <ol><p>the image key.</p></ol>
724 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
725 _8c.html" target="source" name="DeleteImageList">DeleteImageList</a></h2>
726 <div class="doc-section">
728 <p>DeleteImageList() deletes an image at the specified position in the list.</p></ol>
730 <p>The format of the DeleteImageList method is:</p>
733 unsigned int DeleteImageList(Image *images,const long offset)
736 <p>A description of each parameter follows:</p></ol>
739 <ol><p>the image list.</p></ol>
742 <ol><p>the position within the list.</p></ol>
745 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
746 _8c.html" target="source" name="DeleteMagickRegistry">DeleteMagickRegistry</a></h2>
747 <div class="doc-section">
749 <p>DeleteMagickRegistry() deletes an entry in the registry as defined by the id. It returns MagickTrue if the entry is deleted otherwise MagickFalse if no entry is found in the registry that matches the id.</p></ol>
751 <p>The format of the DeleteMagickRegistry method is:</p>
754 MagickBooleanType DeleteMagickRegistry(const long id)
757 <p>A description of each parameter follows:</p></ol>
760 <ol><p>the registry id.</p></ol>
763 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
764 _8c.html" target="source" name="DescribeImage">DescribeImage</a></h2>
765 <div class="doc-section">
767 <p>DescribeImage() describes an image by printing its attributes to the file. Attributes include the image width, height, size, and others.</p></ol>
769 <p>The format of the DescribeImage method is:</p>
772 MagickBooleanType DescribeImage(Image *image,FILE *file,
773 const MagickBooleanType verbose)
776 <p>A description of each parameter follows:</p></ol>
779 <ol><p>the image.</p></ol>
782 <ol><p>the file, typically stdout.</p></ol>
785 <ol><p>A value other than zero prints more detailed information about the image.</p></ol>
788 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
789 _8c.html" target="source" name="DestroyImageAttributes">DestroyImageAttributes</a></h2>
790 <div class="doc-section">
792 <p>DestroyImageAttributes() deallocates memory associated with the image attribute list.</p></ol>
794 <p>The format of the DestroyImageAttributes method is:</p>
797 DestroyImageAttributes(Image *image)
800 <p>A description of each parameter follows:</p></ol>
803 <ol><p>the image.</p></ol>
806 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
807 _8c.html" target="source" name="DestroyImages">DestroyImages</a></h2>
808 <div class="doc-section">
810 <p>DestroyImages() destroys an image list.</p></ol>
812 <p>The format of the DestroyImages method is:</p>
815 void DestroyImages(Image *image)
818 <p>A description of each parameter follows:</p></ol>
821 <ol><p>the image sequence.</p></ol>
824 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
825 _8c.html" target="source" name="DestroyMagick">DestroyMagick</a></h2>
826 <div class="doc-section">
828 <p>DestroyMagick() destroys the ImageMagick environment.</p></ol>
830 <p>The format of the DestroyMagick function is:</p>
837 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
838 _8c.html" target="source" name="DispatchImage">DispatchImage</a></h2>
839 <div class="doc-section">
841 <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, long, float, or double in the order specified by map.</p></ol>
843 <p>Suppose you want to extract the first scanline of a 640x480 image as character data in red-green-blue order:</p>
846 DispatchImage(image,0,0,640,1,"RGB",CharPixel,pixels,exception);
849 <p>The format of the DispatchImage method is:</p>
852 unsigned int DispatchImage(const Image *image,const long x_offset,
853 const long y_offset,const unsigned long columns,
854 const unsigned long rows,const char *map,const StorageType type,
855 void *pixels,ExceptionInfo *exception)
858 <p>A description of each parameter follows:</p></ol>
861 <ol><p>the image.</p></ol>
863 <h5>x_offset, y_offset, columns, rows</h5>
864 <ol><p>These values define the perimeter of a region of pixels you want to extract.</p></ol>
867 <ol><p>This string reflects the expected ordering of the pixel array. It can be any combination or order of R = red, G = green, B = blue, A = alpha, C = cyan, Y = yellow, M = magenta, K = black, or I = intensity (for grayscale).</p></ol>
870 <ol><p>Define the data type of the pixels. Float and double types are normalized to [0..1] otherwise [0..QuantumRange]. Choose from these types: CharPixel, ShortPixel, IntegerPixel, LongPixel, FloatPixel, or DoublePixel.</p></ol>
873 <ol><p>This array of values contain the pixel components as defined by map and type. You must preallocate this array where the expected length varies depending on the values of width, height, map, and type.</p></ol>
876 <ol><p>return any errors or warnings in this structure.</p></ol>
879 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
880 _8c.html" target="source" name="ExtractSubimageFromImageImage">ExtractSubimageFromImageImage</a></h2>
881 <div class="doc-section">
883 <p>ExtractSubimageFromImageImage() extracts a region of the image that most closely resembles the reference.</p></ol>
885 <p>The format of the ExtractSubimageFromImageImage method is:</p>
888 Image *ExtractSubimageFromImage(const Image *image,const Image *reference,
889 ExceptionInfo *exception)
892 <p>A description of each parameter follows:</p></ol>
895 <ol><p>the image.</p></ol>
898 <ol><p>find an area of the image that closely resembles this image.</p></ol>
901 <ol><p>return any errors or warnings in this structure.</p></ol>
904 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
905 _8c.html" target="source" name="FlattenImages">FlattenImages</a></h2>
906 <div class="doc-section">
908 <p>FlattenImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
910 <p>The format of the FlattenImage method is:</p>
913 Image *FlattenImage(Image *image,ExceptionInfo *exception)
916 <p>A description of each parameter follows:</p></ol>
919 <ol><p>the image sequence.</p></ol>
922 <ol><p>return any errors or warnings in this structure.</p></ol>
925 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
926 _8c.html" target="source" name="FormatImageAttribute">FormatImageAttribute</a></h2>
927 <div class="doc-section">
929 <p>FormatImageAttribute() permits formatted key/value pairs to be saved as an image attribute.</p></ol>
931 <p>The format of the FormatImageAttribute method is:</p>
934 MagickBooleanType FormatImageAttribute(Image *image,const char *key,
935 const char *format,...)
938 <p>A description of each parameter follows.</p></ol>
941 <ol><p>The image.</p></ol>
944 <ol><p>The attribute key.</p></ol>
947 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
950 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
951 _8c.html" target="source" name="FormatString">FormatString</a></h2>
952 <div class="doc-section">
954 <p>FormatString() prints formatted output of a variable argument list.</p></ol>
956 <p>The format of the FormatString method is:</p>
959 void FormatString(char *string,const char *format,...)
962 <p>A description of each parameter follows.</p></ol>
965 <ol><p>Method FormatString returns the formatted string in this character buffer.</p></ol>
968 <ol><p>A string describing the format to use to write the remaining arguments.</p></ol>
971 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
972 _8c.html" target="source" name="GetConfigureBlob">GetConfigureBlob</a></h2>
973 <div class="doc-section">
975 <p>GetConfigureBlob() returns the specified configure file as a blob.</p></ol>
977 <p>The format of the GetConfigureBlob method is:</p>
980 void *GetConfigureBlob(const char *filename,ExceptionInfo *exception)
983 <p>A description of each parameter follows:</p></ol>
986 <ol><p>the configure file name.</p></ol>
989 <ol><p>return the full path information of the configure file.</p></ol>
992 <ol><p>This pointer to a size_t integer sets the initial length of the blob. On return, it reflects the actual length of the blob.</p></ol>
995 <ol><p>return any errors or warnings in this structure.</p></ol>
998 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
999 _8c.html" target="source" name="GetCacheView">GetCacheView</a></h2>
1000 <div class="doc-section">
1002 <p>GetCacheView() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
1004 <p>The format of the GetCacheView method is:</p>
1007 PixelPacket *GetCacheView(CacheView *cache_view,const long x,
1008 const long y,const unsigned long columns,const unsigned long rows)
1011 <p>A description of each parameter follows:</p></ol>
1014 <ol><p>the address of a structure of type CacheView.</p></ol>
1016 <h5>x,y,columns,rows</h5>
1017 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1020 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1021 _8c.html" target="source" name="GetCacheViewIndexes">GetCacheViewIndexes</a></h2>
1022 <div class="doc-section">
1024 <p>GetCacheViewIndexes() returns the indexes associated with the specified view.</p></ol>
1026 <p>The format of the GetCacheViewIndexes method is:</p>
1029 IndexPacket *GetCacheViewIndexes(CacheView *cache_view)
1032 <p>A description of each parameter follows:</p></ol>
1035 <ol><p>the cache view.</p></ol>
1038 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1039 _8c.html" target="source" name="GetCacheViewPixels">GetCacheViewPixels</a></h2>
1040 <div class="doc-section">
1042 <p>GetCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
1044 <p>The format of the GetCacheViewPixels method is:</p>
1047 PixelPacket *GetCacheViewPixels(CacheView *cache_view,const long x,
1048 const long y,const unsigned long columns,const unsigned long rows)
1051 <p>A description of each parameter follows:</p></ol>
1054 <ol><p>the cache view.</p></ol>
1056 <h5>x,y,columns,rows</h5>
1057 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1060 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1061 _8c.html" target="source" name="GetImageAttribute">GetImageAttribute</a></h2>
1062 <div class="doc-section">
1064 <p>GetImageAttribute() searches the list of image attributes and returns a pointer to the attribute if it exists otherwise NULL.</p></ol>
1066 <p>The format of the GetImageAttribute method is:</p>
1069 const ImageAttribute *GetImageAttribute(const Image *image,
1073 <p>A description of each parameter follows:</p></ol>
1076 <ol><p>the image.</p></ol>
1079 <ol><p>These character strings are the name of an image attribute to return.</p></ol>
1082 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1083 _8c.html" target="source" name="GetImageClippingPathAttribute">GetImageClippingPathAttribute</a></h2>
1084 <div class="doc-section">
1086 <p>GetImageClippingPathAttribute() searches the list of image attributes and returns a pointer to a clipping path if it exists otherwise NULL.</p></ol>
1088 <p>The format of the GetImageClippingPathAttribute method is:</p>
1091 const ImageAttribute *GetImageClippingPathAttribute(Image *image)
1094 <p>A description of each parameter follows:</p></ol>
1097 <ol><p>Method GetImageClippingPathAttribute returns the clipping path if it exists otherwise NULL.</p></ol>
1100 <ol><p>the image.</p></ol>
1103 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1104 _8c.html" target="source" name="GetImageFromMagickRegistry">GetImageFromMagickRegistry</a></h2>
1105 <div class="doc-section">
1107 <p>GetImageFromMagickRegistry() gets an image from the registry as defined by its name. If the image is not found, a NULL image is returned.</p></ol>
1109 <p>The format of the GetImageFromMagickRegistry method is:</p>
1112 Image *GetImageFromMagickRegistry(const char *name,long *id,
1113 ExceptionInfo *exception)
1116 <p>A description of each parameter follows:</p></ol>
1119 <ol><p>the name of the image to retrieve from the registry.</p></ol>
1122 <ol><p>the registry id.</p></ol>
1125 <ol><p>return any errors or warnings in this structure.</p></ol>
1128 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1129 _8c.html" target="source" name="GetMagickRegistry">GetMagickRegistry</a></h2>
1130 <div class="doc-section">
1132 <p>GetMagickRegistry() gets a blob from the registry as defined by the id. If the blob that matches the id is not found, NULL is returned.</p></ol>
1134 <p>The format of the GetMagickRegistry method is:</p>
1137 const void *GetMagickRegistry(const long id,RegistryType *type,
1138 size_t *length,ExceptionInfo *exception)
1141 <p>A description of each parameter follows:</p></ol>
1144 <ol><p>the registry id.</p></ol>
1147 <ol><p>the registry type.</p></ol>
1150 <ol><p>the blob length in number of bytes.</p></ol>
1153 <ol><p>return any errors or warnings in this structure.</p></ol>
1156 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1157 _8c.html" target="source" name="GetImageGeometry">GetImageGeometry</a></h2>
1158 <div class="doc-section">
1160 <p>GetImageGeometry() returns a region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1162 <p>The format of the GetImageGeometry method is:</p>
1165 int GetImageGeometry(Image *image,const char *geometry,
1166 const unsigned int size_to_fit,RectangeInfo *region_info)
1169 <p>A description of each parameter follows:</p></ol>
1172 <ol><p>Method GetImageGeometry returns a bitmask that indicates which of the four values were located in the geometry string.</p></ol>
1175 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1177 <h5>size_to_fit</h5>
1178 <ol><p>A value other than 0 means to scale the region so it fits within the specified width and height.</p></ol>
1180 <h5>region_info</h5>
1181 <ol><p>the region as defined by the geometry string with respect to the image and its gravity.</p></ol>
1184 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1185 _8c.html" target="source" name="GetImageList">GetImageList</a></h2>
1186 <div class="doc-section">
1188 <p>GetImageList() returns an image at the specified position in the list.</p></ol>
1190 <p>The format of the GetImageList method is:</p>
1193 Image *GetImageList(const Image *images,const long offset,
1194 ExceptionInfo *exception)
1197 <p>A description of each parameter follows:</p></ol>
1200 <ol><p>the image list.</p></ol>
1203 <ol><p>the position within the list.</p></ol>
1206 <ol><p>return any errors or warnings in this structure.</p></ol>
1209 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1210 _8c.html" target="source" name="GetImageListIndex">GetImageListIndex</a></h2>
1211 <div class="doc-section">
1213 <p>GetImageListIndex() returns the position in the list of the specified image.</p></ol>
1215 <p>The format of the GetImageListIndex method is:</p>
1218 long GetImageListIndex(const Image *images)
1221 <p>A description of each parameter follows:</p></ol>
1224 <ol><p>the image list.</p></ol>
1227 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1228 _8c.html" target="source" name="GetImageListSize">GetImageListSize</a></h2>
1229 <div class="doc-section">
1231 <p>GetImageListSize() returns the number of images in the list.</p></ol>
1233 <p>The format of the GetImageListSize method is:</p>
1236 unsigned long GetImageListSize(const Image *images)
1239 <p>A description of each parameter follows:</p></ol>
1242 <ol><p>the image list.</p></ol>
1245 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1246 _8c.html" target="source" name="GetImagePixels">GetImagePixels</a></h2>
1247 <div class="doc-section">
1249 <p>GetImagePixels() obtains a pixel region for read/write access. If the region is successfully accessed, a pointer to a PixelPacket array representing the region is returned, otherwise NULL is returned.</p></ol>
1251 <p>The returned pointer may point to a temporary working copy of the pixels or it may point to the original pixels in memory. Performance is maximized if the selected region is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
1253 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or if the storage class is PseduoClass, call GetAuthenticIndexQueue() after invoking GetImagePixels() to obtain the black color component or colormap indexes (of type IndexPacket) corresponding to the region. Once the PixelPacket (and/or IndexPacket) array has been updated, the changes must be saved back to the underlying image using SyncAuthenticPixels() or they may be lost.</p></ol>
1255 <p>The format of the GetImagePixels() method is:</p>
1258 PixelPacket *GetImagePixels(Image *image,const long x,const long y,
1259 const unsigned long columns,const unsigned long rows)
1262 <p>A description of each parameter follows:</p></ol>
1265 <ol><p>the image.</p></ol>
1267 <h5>x,y,columns,rows</h5>
1268 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
1271 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1272 _8c.html" target="source" name="GetIndexes">GetIndexes</a></h2>
1273 <div class="doc-section">
1275 <p>GetIndexes() returns the black channel or the colormap indexes associated with the last call to QueueAuthenticPixels() or GetVirtualPixels(). NULL is returned if the black channel or colormap indexes are not available.</p></ol>
1277 <p>The format of the GetIndexes() method is:</p>
1280 IndexPacket *GetIndexes(const Image *image)
1283 <p>A description of each parameter follows:</p></ol>
1286 <ol><p>GetIndexes() returns the indexes associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1289 <ol><p>the image.</p></ol>
1292 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1293 _8c.html" target="source" name="GetNextImage">GetNextImage</a></h2>
1294 <div class="doc-section">
1296 <p>GetNextImage() returns the next image in a list.</p></ol>
1298 <p>The format of the GetNextImage method is:</p>
1301 Image *GetNextImage(const Image *images)
1304 <p>A description of each parameter follows:</p></ol>
1307 <ol><p>the image list.</p></ol>
1310 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1311 _8c.html" target="source" name="GetNextImageAttribute">GetNextImageAttribute</a></h2>
1312 <div class="doc-section">
1314 <p>GetNextImageAttribute() gets the next image attribute.</p></ol>
1316 <p>The format of the GetNextImageAttribute method is:</p>
1319 const ImageAttribute *GetNextImageAttribute(const Image *image)
1322 <p>A description of each parameter follows:</p></ol>
1325 <ol><p>the image.</p></ol>
1328 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1329 _8c.html" target="source" name="GetNumberScenes">GetNumberScenes</a></h2>
1330 <div class="doc-section">
1332 <p>GetNumberScenes() returns the number of images in the list.</p></ol>
1334 <p>The format of the GetNumberScenes method is:</p>
1337 unsigned int GetNumberScenes(const Image *images)
1340 <p>A description of each parameter follows:</p></ol>
1343 <ol><p>the image list.</p></ol>
1346 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1347 _8c.html" target="source" name="GetOnePixel">GetOnePixel</a></h2>
1348 <div class="doc-section">
1350 <p>GetOnePixel() returns a single pixel at the specified (x,y) location. The image background color is returned if an error occurs.</p></ol>
1352 <p>The format of the GetOnePixel() method is:</p>
1355 PixelPacket GetOnePixel(const Image image,const long x,const long y)
1358 <p>A description of each parameter follows:</p></ol>
1361 <ol><p>the image.</p></ol>
1364 <ol><p>These values define the location of the pixel to return.</p></ol>
1367 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1368 _8c.html" target="source" name="GetPixels">GetPixels</a></h2>
1369 <div class="doc-section">
1371 <p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1373 <p>The format of the GetPixels() method is:</p>
1376 PixelPacket *GetPixels(const Image image)
1379 <p>A description of each parameter follows:</p></ol>
1382 <ol><p>GetPixels() returns the pixels associated with the last call to QueueAuthenticPixels() or GetAuthenticPixels().</p></ol>
1385 <ol><p>the image.</p></ol>
1388 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1389 _8c.html" target="source" name="GetPreviousImage">GetPreviousImage</a></h2>
1390 <div class="doc-section">
1392 <p>GetPreviousImage() returns the previous image in a list.</p></ol>
1394 <p>The format of the GetPreviousImage method is:</p>
1397 Image *GetPreviousImage(const Image *images)
1400 <p>A description of each parameter follows:</p></ol>
1403 <ol><p>the image list.</p></ol>
1406 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1407 _8c.html" target="source" name="HSLTransform">HSLTransform</a></h2>
1408 <div class="doc-section">
1410 <p>HSLTransform() converts a (hue, saturation, lightness) to a (red, green, blue) triple.</p></ol>
1412 <p>The format of the HSLTransformImage method is:</p>
1415 void HSLTransform(const double hue,const double saturation,
1416 const double lightness,Quantum *red,Quantum *green,Quantum *blue)
1419 <p>A description of each parameter follows:</p></ol>
1421 <h5>hue, saturation, lightness</h5>
1422 <ol><p>A double value representing a component of the HSL color space.</p></ol>
1424 <h5>red, green, blue</h5>
1425 <ol><p>A pointer to a pixel component of type Quantum.</p></ol>
1428 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1429 _8c.html" target="source" name="IdentityAffine">IdentityAffine</a></h2>
1430 <div class="doc-section">
1432 <p>IdentityAffine() initializes the affine transform to the identity matrix.</p></ol>
1434 <p>The format of the IdentityAffine method is:</p>
1437 IdentityAffine(AffineMatrix *affine)
1440 <p>A description of each parameter follows:</p></ol>
1443 <ol><p>A pointer the affine transform of type AffineMatrix.</p></ol>
1446 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1447 _8c.html" target="source" name="InitializeMagick">InitializeMagick</a></h2>
1448 <div class="doc-section">
1450 <p>InitializeMagick() initializes the ImageMagick environment.</p></ol>
1452 <p>The format of the InitializeMagick function is:</p>
1455 InitializeMagick(const char *path)
1458 <p>A description of each parameter follows:</p></ol>
1461 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1464 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1465 _8c.html" target="source" name="InterpolatePixelColor">InterpolatePixelColor</a></h2>
1466 <div class="doc-section">
1468 <p>InterpolatePixelColor() applies bi-linear or tri-linear interpolation between a pixel and it's neighbors.</p></ol>
1470 <p>The format of the InterpolatePixelColor method is:</p>
1473 MagickPixelPacket InterpolatePixelColor(const Image *image,
1474 CacheView *view_info,InterpolatePixelMethod method,const double x,
1475 const double y,ExceptionInfo *exception)
1478 <p>A description of each parameter follows:</p></ol>
1481 <ol><p>the image.</p></ol>
1484 <ol><p>the image cache view.</p></ol>
1487 <ol><p>the type of pixel color interpolation.</p></ol>
1490 <ol><p>A double representing the current (x,y) position of the pixel.</p></ol>
1493 <ol><p>return any errors or warnings in this structure.</p></ol>
1496 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1497 _8c.html" target="source" name="InterpretImageAttributes">InterpretImageAttributes</a></h2>
1498 <div class="doc-section">
1500 <p>InterpretImageAttributes() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
1502 <p>The format of the InterpretImageAttributes method is:</p>
1505 char *InterpretImageAttributes(const ImageInfo *image_info,Image *image,
1506 const char *embed_text)
1509 <p>A description of each parameter follows:</p></ol>
1512 <ol><p>the image info.</p></ol>
1515 <ol><p>the image.</p></ol>
1518 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
1521 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1522 _8c.html" target="source" name="LevelImageColor">LevelImageColor</a></h2>
1523 <div class="doc-section">
1525 <p>LevelImageColor() will map the given color to "black" and "white" values, limearly spreading out the colors, and level values on a channel by channel bases, as per LevelImage(). The given colors allows you to specify different level ranges for each of the color channels seperatally.</p></ol>
1527 <p>If the boolean 'invert' is set true the image values will modifyed in the reverse direction. That is any existing "black" and "white" colors in the image will become the color values given, with all other values compressed appropriatally. This effectivally maps a greyscale gradient into the given color gradient.</p></ol>
1529 <p>The format of the LevelImageColors method is:</p>
1532 MagickBooleanType LevelImageColors(Image *image,const ChannelType channel,
1533 const MagickPixelPacket *black_color,const MagickPixelPacket *white_color,
1534 const MagickBooleanType invert)
1537 <p>A description of each parameter follows:</p></ol>
1540 <ol><p>the image.</p></ol>
1543 <ol><p>the channel.</p></ol>
1545 <h5>black_color</h5>
1546 <ol><p>The color to map black to/from</p></ol>
1548 <h5>white_point</h5>
1549 <ol><p>The color to map white to/from</p></ol>
1552 <ol><p>if true map the colors (levelize), rather than from (level)</p></ol>
1555 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1556 _8c.html" target="source" name="LiberateMemory">LiberateMemory</a></h2>
1557 <div class="doc-section">
1559 <p>LiberateMemory() frees memory that has already been allocated, and NULL's the pointer to it.</p></ol>
1561 <p>The format of the LiberateMemory method is:</p>
1564 void LiberateMemory(void **memory)
1567 <p>A description of each parameter follows:</p></ol>
1570 <ol><p>A pointer to a block of memory to free for reuse.</p></ol>
1573 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1574 _8c.html" target="source" name="LiberateSemaphoreInfo">LiberateSemaphoreInfo</a></h2>
1575 <div class="doc-section">
1577 <p>LiberateSemaphoreInfo() relinquishes a semaphore.</p></ol>
1579 <p>The format of the LiberateSemaphoreInfo method is:</p>
1582 LiberateSemaphoreInfo(void **semaphore_info)
1585 <p>A description of each parameter follows:</p></ol>
1587 <h5>semaphore_info</h5>
1588 <ol><p>Specifies a pointer to an SemaphoreInfo structure.</p></ol>
1591 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1592 _8c.html" target="source" name="MagickIncarnate">MagickIncarnate</a></h2>
1593 <div class="doc-section">
1595 <p>MagickIncarnate() initializes the ImageMagick environment.</p></ol>
1597 <p>The format of the MagickIncarnate function is:</p>
1600 MagickIncarnate(const char *path)
1603 <p>A description of each parameter follows:</p></ol>
1606 <ol><p>the execution path of the current ImageMagick client.</p></ol>
1609 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1610 _8c.html" target="source" name="MagickMonitor">MagickMonitor</a></h2>
1611 <div class="doc-section">
1613 <p>MagickMonitor() calls the monitor handler method with a text string that describes the task and a measure of completion. The method returns MagickTrue on success otherwise MagickFalse if an error is encountered, e.g. if there was a user interrupt.</p></ol>
1615 <p>The format of the MagickMonitor method is:</p>
1618 MagickBooleanType MagickMonitor(const char *text,
1619 const MagickOffsetType offset,const MagickSizeType span,
1623 <p>A description of each parameter follows:</p></ol>
1626 <ol><p>the position relative to the span parameter which represents how much progress has been made toward completing a task.</p></ol>
1629 <ol><p>the span relative to completing a task.</p></ol>
1631 <h5>client_data</h5>
1632 <ol><p>the client data.</p></ol>
1635 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1636 _8c.html" target="source" name="MapImage">MapImage</a></h2>
1637 <div class="doc-section">
1639 <p>MapImage() replaces the colors of an image with the closest color from a reference image.</p></ol>
1641 <p>The format of the MapImage method is:</p>
1644 MagickBooleanType MapImage(Image *image,const Image *map_image,
1645 const MagickBooleanType dither)
1648 <p>A description of each parameter follows:</p></ol>
1651 <ol><p>Specifies a pointer to an Image structure.</p></ol>
1654 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1657 <ol><p>Set this integer value to something other than zero to dither the mapped image.</p></ol>
1660 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1661 _8c.html" target="source" name="MapImages">MapImages</a></h2>
1662 <div class="doc-section">
1664 <p>MapImages() replaces the colors of a sequence of images with the closest color from a reference image.</p></ol>
1666 <p>The format of the MapImage method is:</p>
1669 MagickBooleanType MapImages(Image *images,Image *map_image,
1670 const MagickBooleanType dither)
1673 <p>A description of each parameter follows:</p></ol>
1676 <ol><p>Specifies a pointer to a set of Image structures.</p></ol>
1679 <ol><p>the image. Reduce image to a set of colors represented by this image.</p></ol>
1682 <ol><p>Set this integer value to something other than zero to dither the quantized image.</p></ol>
1685 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1686 _8c.html" target="source" name="MatteFloodfill">MatteFloodfill</a></h2>
1687 <div class="doc-section">
1689 <p>MatteFloodfill() changes the transparency value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the transparency value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
1691 <p>By default target must match a particular pixel transparency exactly. However, in many cases two transparency values may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two transparency values as the same. For example, set fuzz to 10 and the opacity values of 100 and 102 respectively are now interpreted as the same value for the purposes of the floodfill.</p></ol>
1693 <p>The format of the MatteFloodfillImage method is:</p>
1696 MagickBooleanType MatteFloodfillImage(Image *image,
1697 const PixelPacket target,const Quantum opacity,const long x_offset,
1698 const long y_offset,const PaintMethod method)
1701 <p>A description of each parameter follows:</p></ol>
1704 <ol><p>the image.</p></ol>
1707 <ol><p>the RGB value of the target color.</p></ol>
1710 <ol><p>the level of transparency: 0 is fully opaque and QuantumRange is fully transparent.</p></ol>
1713 <ol><p>the starting location of the operation.</p></ol>
1716 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1719 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1720 _8c.html" target="source" name="MosaicImages">MosaicImages</a></h2>
1721 <div class="doc-section">
1723 <p>MosaicImages() Obsolete Function: Use MergeImageLayers() instead.</p></ol>
1725 <p>The format of the MosaicImage method is:</p>
1728 Image *MosaicImages(const Image *image,ExceptionInfo *exception)
1731 <p>A description of each parameter follows:</p></ol>
1734 <ol><p>the image list to be composited together</p></ol>
1737 <ol><p>return any errors or warnings in this structure.</p></ol>
1740 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1741 _8c.html" target="source" name="OpaqueImage">OpaqueImage</a></h2>
1742 <div class="doc-section">
1744 <p>OpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1746 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
1748 <p>The format of the OpaqueImage method is:</p>
1751 MagickBooleanType OpaqueImage(Image *image,
1752 const PixelPacket *target,const PixelPacket fill)
1755 <p>A description of each parameter follows:</p></ol>
1758 <ol><p>the image.</p></ol>
1761 <ol><p>the RGB value of the target color.</p></ol>
1764 <ol><p>the replacement color.</p></ol>
1767 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1768 _8c.html" target="source" name="OpenCacheView">OpenCacheView</a></h2>
1769 <div class="doc-section">
1771 <p>OpenCacheView() opens a view into the pixel cache, using the VirtualPixelMethod that is defined within the given image itself.</p></ol>
1773 <p>The format of the OpenCacheView method is:</p>
1776 CacheView *OpenCacheView(const Image *image)
1779 <p>A description of each parameter follows:</p></ol>
1782 <ol><p>the image.</p></ol>
1785 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1786 _8c.html" target="source" name="PaintFloodfill">PaintFloodfill</a></h2>
1787 <div class="doc-section">
1789 <p>PaintFloodfill() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image.</p></ol>
1791 <p>By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill.</p></ol>
1793 <p>The format of the PaintFloodfillImage method is:</p>
1796 MagickBooleanType PaintFloodfillImage(Image *image,
1797 const ChannelType channel,const MagickPixelPacket target,const long x,
1798 const long y,const DrawInfo *draw_info,const PaintMethod method)
1801 <p>A description of each parameter follows:</p></ol>
1804 <ol><p>the image.</p></ol>
1807 <ol><p>the channel(s).</p></ol>
1810 <ol><p>the RGB value of the target color.</p></ol>
1813 <ol><p>the starting location of the operation.</p></ol>
1816 <ol><p>the draw info.</p></ol>
1819 <ol><p>Choose either FloodfillMethod or FillToBorderMethod.</p></ol>
1822 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1823 _8c.html" target="source" name="PaintOpaqueImage">PaintOpaqueImage</a></h2>
1824 <div class="doc-section">
1826 <p>PaintOpaqueImage() changes any pixel that matches color with the color defined by fill.</p></ol>
1828 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
1830 <p>The format of the PaintOpaqueImage method is:</p>
1833 MagickBooleanType PaintOpaqueImage(Image *image,
1834 const PixelPacket *target,const PixelPacket *fill)
1835 MagickBooleanType PaintOpaqueImageChannel(Image *image,
1836 const ChannelType channel,const PixelPacket *target,
1837 const PixelPacket *fill)
1840 <p>A description of each parameter follows:</p></ol>
1843 <ol><p>the image.</p></ol>
1846 <ol><p>the channel(s).</p></ol>
1849 <ol><p>the RGB value of the target color.</p></ol>
1852 <ol><p>the replacement color.</p></ol>
1855 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1856 _8c.html" target="source" name="PaintTransparentImage">PaintTransparentImage</a></h2>
1857 <div class="doc-section">
1859 <p>PaintTransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
1861 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
1863 <p>The format of the PaintTransparentImage method is:</p>
1866 MagickBooleanType PaintTransparentImage(Image *image,
1867 const MagickPixelPacket *target,const Quantum opacity)
1870 <p>A description of each parameter follows:</p></ol>
1873 <ol><p>the image.</p></ol>
1876 <ol><p>the RGB value of the target color.</p></ol>
1879 <ol><p>the replacement opacity value.</p></ol>
1882 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1883 _8c.html" target="source" name="ParseSizeGeometry">ParseSizeGeometry</a></h2>
1884 <div class="doc-section">
1886 <p>ParseSizeGeometry() returns a region as defined by the geometry string with respect to the image dimensions and aspect ratio.</p></ol>
1888 <p>The format of the ParseSizeGeometry method is:</p>
1891 MagickStatusType ParseSizeGeometry(const Image *image,
1892 const char *geometry,RectangeInfo *region_info)
1895 <p>A description of each parameter follows:</p></ol>
1898 <ol><p>The geometry (e.g. 100x100+10+10).</p></ol>
1900 <h5>region_info</h5>
1901 <ol><p>the region as defined by the geometry string.</p></ol>
1904 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1905 _8c.html" target="source" name="PopImageList">PopImageList</a></h2>
1906 <div class="doc-section">
1908 <p>PopImageList() removes the last image in the list.</p></ol>
1910 <p>The format of the PopImageList method is:</p>
1913 Image *PopImageList(Image **images)
1916 <p>A description of each parameter follows:</p></ol>
1919 <ol><p>the image list.</p></ol>
1922 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1923 _8c.html" target="source" name="PopImagePixels">PopImagePixels</a></h2>
1924 <div class="doc-section">
1926 <p>PopImagePixels() transfers one or more pixel components from the image pixel cache to a user supplied buffer. The pixels are returned in network byte order. MagickTrue is returned if the pixels are successfully transferred, otherwise MagickFalse.</p></ol>
1928 <p>The format of the PopImagePixels method is:</p>
1931 size_t PopImagePixels(Image *,const QuantumType quantum,
1932 unsigned char *destination)
1935 <p>A description of each parameter follows:</p></ol>
1938 <ol><p>the image.</p></ol>
1941 <ol><p>Declare which pixel components to transfer (RGB, RGBA, etc).</p></ol>
1943 <h5>destination</h5>
1944 <ol><p>The components are transferred to this buffer.</p></ol>
1947 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1948 _8c.html" target="source" name="PostscriptGeometry">PostscriptGeometry</a></h2>
1949 <div class="doc-section">
1951 <p>PostscriptGeometry() replaces any page mneumonic with the equivalent size in picas.</p></ol>
1953 <p>The format of the PostscriptGeometry method is:</p>
1956 char *PostscriptGeometry(const char *page)
1959 <p>A description of each parameter follows.</p></ol>
1962 <ol><p>Specifies a pointer to an array of characters. The string is either a Postscript page name (e.g. A4) or a postscript page geometry (e.g. 612x792+36+36).</p></ol>
1965 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1966 _8c.html" target="source" name="PushImageList">PushImageList</a></h2>
1967 <div class="doc-section">
1969 <p>PushImageList() adds an image to the end of the list.</p></ol>
1971 <p>The format of the PushImageList method is:</p>
1974 unsigned int PushImageList(Image *images,const Image *image,
1975 ExceptionInfo *exception)
1978 <p>A description of each parameter follows:</p></ol>
1981 <ol><p>the image list.</p></ol>
1984 <ol><p>the image.</p></ol>
1987 <ol><p>return any errors or warnings in this structure.</p></ol>
1990 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
1991 _8c.html" target="source" name="PushImagePixels">PushImagePixels</a></h2>
1992 <div class="doc-section">
1994 <p>PushImagePixels() transfers one or more pixel components from a user supplied buffer into the image pixel cache of an image. The pixels are expected in network byte order. It returns MagickTrue if the pixels are successfully transferred, otherwise MagickFalse.</p></ol>
1996 <p>The format of the PushImagePixels method is:</p>
1999 size_t PushImagePixels(Image *image,const QuantumType quantum,
2000 const unsigned char *source)
2003 <p>A description of each parameter follows:</p></ol>
2006 <ol><p>the image.</p></ol>
2009 <ol><p>Declare which pixel components to transfer (red, green, blue, opacity, RGB, or RGBA).</p></ol>
2012 <ol><p>The pixel components are transferred from this buffer.</p></ol>
2015 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2016 _8c.html" target="source" name="QuantizationError">QuantizationError</a></h2>
2017 <div class="doc-section">
2019 <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>
2022 o mean_error_per_pixel: This value is the mean error for any single
2026 <h5>normalized_mean_square_error</h5>
2027 <ol><p>This value is the normalized mean quantization error for any single pixel in the image. This distance measure is normalized to a range between 0 and 1. It is independent of the range of red, green, and blue values in the image.</p></ol>
2029 <h5>normalized_maximum_square_error</h5>
2030 <ol><p>Thsi value is the normalized maximum quantization error for any single pixel in the image. This distance measure is normalized to a range between 0 and 1. It is independent of the range of red, green, and blue values in your image.</p></ol>
2033 <p>The format of the QuantizationError method is:</p>
2036 unsigned int QuantizationError(Image *image)
2039 <p>A description of each parameter follows.</p></ol>
2042 <ol><p>Specifies a pointer to an Image structure; returned from ReadImage.</p></ol>
2045 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2046 _8c.html" target="source" name="RandomChannelThresholdImage">RandomChannelThresholdImage</a></h2>
2047 <div class="doc-section">
2049 <p>RandomChannelThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to a random threshold. The result is a low-contrast, two color image.</p></ol>
2051 <p>The format of the RandomChannelThresholdImage method is:</p>
2054 unsigned int RandomChannelThresholdImage(Image *image,
2055 const char *channel, const char *thresholds,
2056 ExceptionInfo *exception)
2059 <p>A description of each parameter follows:</p></ol>
2062 <ol><p>the image.</p></ol>
2065 <ol><p>the channel or channels to be thresholded.</p></ol>
2068 <ol><p>a geometry string containing LOWxHIGH thresholds. If the string contains 2x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be performed instead.</p></ol>
2071 <ol><p>return any errors or warnings in this structure.</p></ol>
2074 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2075 _8c.html" target="source" name="ReacquireMemory">ReacquireMemory</a></h2>
2076 <div class="doc-section">
2078 <p>ReacquireMemory() changes the size of the memory and returns a pointer to the (possibly moved) block. The contents will be unchanged up to the lesser of the new and old sizes.</p></ol>
2080 <p>The format of the ReacquireMemory method is:</p>
2083 void ReacquireMemory(void **memory,const size_t size)
2086 <p>A description of each parameter follows:</p></ol>
2089 <ol><p>A pointer to a memory allocation. On return the pointer may change but the contents of the original allocation will not.</p></ol>
2092 <ol><p>the new size of the allocated memory.</p></ol>
2095 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2096 _8c.html" target="source" name="ResetImageAttributeIterator">ResetImageAttributeIterator</a></h2>
2097 <div class="doc-section">
2099 <p>ResetImageAttributeIterator() resets the image attributes iterator. Use it in conjunction with GetNextImageAttribute() to iterate over all the values associated with an image.</p></ol>
2101 <p>The format of the ResetImageAttributeIterator method is:</p>
2104 ResetImageAttributeIterator(const ImageInfo *image)
2107 <p>A description of each parameter follows:</p></ol>
2110 <ol><p>the image.</p></ol>
2113 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2114 _8c.html" target="source" name="SetCacheViewPixels">SetCacheViewPixels</a></h2>
2115 <div class="doc-section">
2117 <p>SetCacheViewPixels() gets pixels from the in-memory or disk pixel cache as defined by the geometry parameters. A pointer to the pixels is returned if the pixels are transferred, otherwise a NULL is returned.</p></ol>
2119 <p>The format of the SetCacheViewPixels method is:</p>
2122 PixelPacket *SetCacheViewPixels(CacheView *cache_view,const long x,
2123 const long y,const unsigned long columns,const unsigned long rows)
2126 <p>A description of each parameter follows:</p></ol>
2129 <ol><p>the cache view.</p></ol>
2131 <h5>x,y,columns,rows</h5>
2132 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2135 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2136 _8c.html" target="source" name="SetExceptionInfo">SetExceptionInfo</a></h2>
2137 <div class="doc-section">
2139 <p>SetExceptionInfo() sets the exception severity.</p></ol>
2141 <p>The format of the SetExceptionInfo method is:</p>
2144 MagickBooleanType SetExceptionInfo(ExceptionInfo *exception,
2145 ExceptionType severity)
2148 <p>A description of each parameter follows:</p></ol>
2151 <ol><p>the exception info.</p></ol>
2154 <ol><p>the exception severity.</p></ol>
2157 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2158 _8c.html" target="source" name="SetImage">SetImage</a></h2>
2159 <div class="doc-section">
2161 <p>SetImage() sets the red, green, and blue components of each pixel to the image background color and the opacity component to the specified level of transparency. The background color is defined by the background_color member of the image.</p></ol>
2163 <p>The format of the SetImage method is:</p>
2166 void SetImage(Image *image,const Quantum opacity)
2169 <p>A description of each parameter follows:</p></ol>
2172 <ol><p>the image.</p></ol>
2175 <ol><p>Set each pixel to this level of transparency.</p></ol>
2178 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2179 _8c.html" target="source" name="SetImageAttribute">SetImageAttribute</a></h2>
2180 <div class="doc-section">
2182 <p>SetImageAttribute() searches the list of image attributes and replaces the attribute value. If it is not found in the list, the attribute name and value is added to the list. </p></ol>
2184 <p>The format of the SetImageAttribute method is:</p>
2187 MagickBooleanType SetImageAttribute(Image *image,const char *key,
2191 <p>A description of each parameter follows:</p></ol>
2194 <ol><p>the image.</p></ol>
2197 <ol><p>the key.</p></ol>
2200 <ol><p>the value.</p></ol>
2203 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2204 _8c.html" target="source" name="SetImageList">SetImageList</a></h2>
2205 <div class="doc-section">
2207 <p>SetImageList() inserts an image into the list at the specified position.</p></ol>
2209 <p>The format of the SetImageList method is:</p>
2212 unsigned int SetImageList(Image *images,const Image *image,
2213 const long offset,ExceptionInfo *exception)
2216 <p>A description of each parameter follows:</p></ol>
2219 <ol><p>the image list.</p></ol>
2222 <ol><p>the image.</p></ol>
2225 <ol><p>the position within the list.</p></ol>
2228 <ol><p>return any errors or warnings in this structure.</p></ol>
2231 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2232 _8c.html" target="source" name="SetImagePixels">SetImagePixels</a></h2>
2233 <div class="doc-section">
2235 <p>SetImagePixels() queues a mutable pixel region. If the region is successfully intialized a pointer to a PixelPacket array representing the region is returned, otherwise NULL is returned. The returned pointer may point to a temporary working buffer for the pixels or it may point to the final location of the pixels in memory.</p></ol>
2237 <p>Write-only access means that any existing pixel values corresponding to the region are ignored. This useful while the initial image is being created from scratch, or if the existing pixel values are to be completely replaced without need to refer to their pre-existing values. The application is free to read and write the pixel buffer returned by SetImagePixels() any way it pleases. SetImagePixels() does not initialize the pixel array values. Initializing pixel array values is the application's responsibility.</p></ol>
2239 <p>Performance is maximized if the selected region is part of one row, or one or more full rows, since then there is opportunity to access the pixels in-place (without a copy) if the image is in RAM, or in a memory-mapped file. The returned pointer should *never* be deallocated by the user.</p></ol>
2241 <p>Pixels accessed via the returned pointer represent a simple array of type PixelPacket. If the image type is CMYK or the storage class is PseudoClass, call GetAuthenticIndexQueue() after invoking GetAuthenticPixels() to obtain the black color component or the colormap indexes (of type IndexPacket) corresponding to the region. Once the PixelPacket (and/or IndexPacket) array has been updated, the changes must be saved back to the underlying image using SyncAuthenticPixels() or they may be lost.</p></ol>
2243 <p>The format of the SetImagePixels() method is:</p>
2246 PixelPacket *SetImagePixels(Image *image,const long x,const long y,
2247 const unsigned long columns,const unsigned long rows)
2250 <p>A description of each parameter follows:</p></ol>
2253 <ol><p>SetImagePixels returns a pointer to the pixels if they are transferred, otherwise a NULL is returned.</p></ol>
2256 <ol><p>the image.</p></ol>
2258 <h5>x,y,columns,rows</h5>
2259 <ol><p>These values define the perimeter of a region of pixels.</p></ol>
2262 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2263 _8c.html" target="source" name="SetMagickRegistry">SetMagickRegistry</a></h2>
2264 <div class="doc-section">
2266 <p>SetMagickRegistry() sets a blob into the registry and returns a unique ID. If an error occurs, -1 is returned.</p></ol>
2268 <p>The format of the SetMagickRegistry method is:</p>
2271 long SetMagickRegistry(const RegistryType type,const void *blob,
2272 const size_t length,ExceptionInfo *exception)
2275 <p>A description of each parameter follows:</p></ol>
2278 <ol><p>the registry type.</p></ol>
2281 <ol><p>the address of a Binary Large OBject.</p></ol>
2284 <ol><p>For a registry type of ImageRegistryType use sizeof(Image) otherise the blob length in number of bytes.</p></ol>
2287 <ol><p>return any errors or warnings in this structure.</p></ol>
2290 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2291 _8c.html" target="source" name="SetMonitorHandler">SetMonitorHandler</a></h2>
2292 <div class="doc-section">
2294 <p>SetMonitorHandler() sets the monitor handler to the specified method and returns the previous monitor handler.</p></ol>
2296 <p>The format of the SetMonitorHandler method is:</p>
2299 MonitorHandler SetMonitorHandler(MonitorHandler handler)
2302 <p>A description of each parameter follows:</p></ol>
2305 <ol><p>Specifies a pointer to a method to handle monitors.</p></ol>
2308 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2309 _8c.html" target="source" name="ShiftImageList">ShiftImageList</a></h2>
2310 <div class="doc-section">
2312 <p>ShiftImageList() removes an image from the beginning of the list.</p></ol>
2314 <p>The format of the ShiftImageList method is:</p>
2317 Image *ShiftImageList(Image **images)
2320 <p>A description of each parameter follows:</p></ol>
2323 <ol><p>the image list.</p></ol>
2326 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2327 _8c.html" target="source" name="SpliceImageList">SpliceImageList</a></h2>
2328 <div class="doc-section">
2330 <p>SpliceImageList() removes the images designated by offset and length from the list and replaces them with the specified list.</p></ol>
2332 <p>The format of the SpliceImageList method is:</p>
2335 Image *SpliceImageList(Image *images,const long offset,
2336 const unsigned long length,const Image *splices,
2337 ExceptionInfo *exception)
2340 <p>A description of each parameter follows:</p></ol>
2343 <ol><p>the image list.</p></ol>
2346 <ol><p>the position within the list.</p></ol>
2349 <ol><p>the length of the image list to remove.</p></ol>
2352 <ol><p>Replace the removed image list with this list.</p></ol>
2355 <ol><p>return any errors or warnings in this structure.</p></ol>
2358 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2359 _8c.html" target="source" name="Strip">Strip</a></h2>
2360 <div class="doc-section">
2362 <p>Strip() strips any whitespace or quotes from the beginning and end of a string of characters.</p></ol>
2364 <p>The format of the Strip method is:</p>
2367 void Strip(char *message)
2370 <p>A description of each parameter follows:</p></ol>
2373 <ol><p>Specifies an array of characters.</p></ol>
2376 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2377 _8c.html" target="source" name="SyncCacheView">SyncCacheView</a></h2>
2378 <div class="doc-section">
2380 <p>SyncCacheView() saves the cache view pixels to the in-memory or disk cache. It returns MagickTrue if the pixel region is synced, otherwise MagickFalse.</p></ol>
2382 <p>The format of the SyncCacheView method is:</p>
2385 MagickBooleanType SyncCacheView(CacheView *cache_view)
2388 <p>A description of each parameter follows:</p></ol>
2391 <ol><p>the cache view.</p></ol>
2394 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2395 _8c.html" target="source" name="SyncCacheViewPixels">SyncCacheViewPixels</a></h2>
2396 <div class="doc-section">
2398 <p>SyncCacheViewPixels() saves the cache view pixels to the in-memory or disk cache. It returns MagickTrue if the pixel region is flushed, otherwise MagickFalse.</p></ol>
2400 <p>The format of the SyncCacheViewPixels method is:</p>
2403 MagickBooleanType SyncCacheViewPixels(CacheView *cache_view)
2406 <p>A description of each parameter follows:</p></ol>
2409 <ol><p>the cache view.</p></ol>
2412 <ol><p>return any errors or warnings in this structure.</p></ol>
2415 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2416 _8c.html" target="source" name="SyncImagePixels">SyncImagePixels</a></h2>
2417 <div class="doc-section">
2419 <p>SyncImagePixels() saves the image pixels to the in-memory or disk cache. The method returns MagickTrue if the pixel region is synced, otherwise MagickFalse.</p></ol>
2421 <p>The format of the SyncImagePixels() method is:</p>
2424 MagickBooleanType SyncImagePixels(Image *image)
2427 <p>A description of each parameter follows:</p></ol>
2430 <ol><p>the image.</p></ol>
2433 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2434 _8c.html" target="source" name="TemporaryFilename">TemporaryFilename</a></h2>
2435 <div class="doc-section">
2437 <p>TemporaryFilename() replaces the contents of path by a unique path name.</p></ol>
2439 <p>The format of the TemporaryFilename method is:</p>
2442 void TemporaryFilename(char *path)
2445 <p>A description of each parameter follows.</p></ol>
2448 <ol><p>Specifies a pointer to an array of characters. The unique path name is returned in this array.</p></ol>
2451 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2452 _8c.html" target="source" name="ThresholdImage">ThresholdImage</a></h2>
2453 <div class="doc-section">
2455 <p>ThresholdImage() changes the value of individual pixels based on the intensity of each pixel compared to threshold. The result is a high-contrast, two color image.</p></ol>
2457 <p>The format of the ThresholdImage method is:</p>
2460 unsigned int ThresholdImage(Image *image,const double threshold)
2463 <p>A description of each parameter follows:</p></ol>
2466 <ol><p>the image.</p></ol>
2469 <ol><p>Define the threshold value</p></ol>
2472 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2473 _8c.html" target="source" name="ThresholdImageChannel">ThresholdImageChannel</a></h2>
2474 <div class="doc-section">
2476 <p>ThresholdImageChannel() changes the value of individual pixels based on the intensity of each pixel channel. The result is a high-contrast image.</p></ol>
2478 <p>The format of the ThresholdImageChannel method is:</p>
2481 unsigned int ThresholdImageChannel(Image *image,const char *threshold)
2484 <p>A description of each parameter follows:</p></ol>
2487 <ol><p>the image.</p></ol>
2490 <ol><p>define the threshold values.</p></ol>
2493 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2494 _8c.html" target="source" name="TransformHSL">TransformHSL</a></h2>
2495 <div class="doc-section">
2497 <p>TransformHSL() converts a (red, green, blue) to a (hue, saturation, lightness) triple.</p></ol>
2499 <p>The format of the TransformHSL method is:</p>
2502 void TransformHSL(const Quantum red,const Quantum green,
2503 const Quantum blue,double *hue,double *saturation,double *lightness)
2506 <p>A description of each parameter follows:</p></ol>
2508 <h5>red, green, blue</h5>
2509 <ol><p>A Quantum value representing the red, green, and blue component of a pixel..</p></ol>
2511 <h5>hue, saturation, lightness</h5>
2512 <ol><p>A pointer to a double value representing a component of the HSL color space.</p></ol>
2515 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2516 _8c.html" target="source" name="TranslateText">TranslateText</a></h2>
2517 <div class="doc-section">
2519 <p>TranslateText() replaces any embedded formatting characters with the appropriate image attribute and returns the translated text.</p></ol>
2521 <p>The format of the TranslateText method is:</p>
2524 char *TranslateText(const ImageInfo *image_info,Image *image,
2525 const char *embed_text)
2528 <p>A description of each parameter follows:</p></ol>
2531 <ol><p>the image info.</p></ol>
2534 <ol><p>the image.</p></ol>
2537 <ol><p>the address of a character string containing the embedded formatting characters.</p></ol>
2540 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2541 _8c.html" target="source" name="TransparentImage">TransparentImage</a></h2>
2542 <div class="doc-section">
2544 <p>TransparentImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity.</p></ol>
2546 <p>By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color.</p></ol>
2548 <p>The format of the TransparentImage method is:</p>
2551 MagickBooleanType TransparentImage(Image *image,
2552 const PixelPacket target,const Quantum opacity)
2555 <p>A description of each parameter follows:</p></ol>
2558 <ol><p>the image.</p></ol>
2561 <ol><p>the RGB value of the target color.</p></ol>
2564 <ol><p>the replacement opacity value.</p></ol>
2567 <h2><a href="http://www.imagemagick.org/api/MagickCore/deprecate
2568 _8c.html" target="source" name="UnshiftImageList">UnshiftImageList</a></h2>
2569 <div class="doc-section">
2571 <p>UnshiftImageList() adds the image to the beginning of the list.</p></ol>
2573 <p>The format of the UnshiftImageList method is:</p>
2576 unsigned int UnshiftImageList(Image *images,const Image *image,
2577 ExceptionInfo *exception)
2580 <p>A description of each parameter follows:</p></ol>
2583 <ol><p>the image list.</p></ol>
2586 <ol><p>the image.</p></ol>
2589 <ol><p>return any errors or warnings in this structure.</p></ol>
2595 <div id="linkbar">
\r
2596 <!-- <span id="linkbar-west"> </span> -->
\r
2597 <span id="linkbar-center">
\r
2598 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
2599 <a href="../../www/mailing-list.html">Mailing Lists</a> •
\r
2600 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
2602 <span id="linkbar-east"> </span>
\r
2604 <div class="footer">
\r
2605 <span id="footer-west">© 1999-2009 ImageMagick Studio LLC</span>
\r
2606 <span id="footer-east"> <a href="../http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
2608 <div style="clear: both; margin: 0; width: 100%; "></div>
\r